mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
add try catch to help show errors
This commit is contained in:
parent
5cb00963e7
commit
b02bba55f2
|
@ -1349,6 +1349,7 @@ export default mixins(
|
||||||
let exitTimer: NodeJS.Timeout | undefined;
|
let exitTimer: NodeJS.Timeout | undefined;
|
||||||
let enterTimer: NodeJS.Timeout | undefined;
|
let enterTimer: NodeJS.Timeout | undefined;
|
||||||
info.connection.bind('mouseover', (connection: Connection) => {
|
info.connection.bind('mouseover', (connection: Connection) => {
|
||||||
|
try {
|
||||||
if (exitTimer !== undefined) {
|
if (exitTimer !== undefined) {
|
||||||
clearTimeout(exitTimer);
|
clearTimeout(exitTimer);
|
||||||
exitTimer = undefined;
|
exitTimer = undefined;
|
||||||
|
@ -1364,14 +1365,20 @@ export default mixins(
|
||||||
|
|
||||||
CanvasHelpers.hideConnectionActions(activeConnection);
|
CanvasHelpers.hideConnectionActions(activeConnection);
|
||||||
|
|
||||||
|
|
||||||
enterTimer = setTimeout(() => {
|
enterTimer = setTimeout(() => {
|
||||||
enterTimer = undefined;
|
enterTimer = undefined;
|
||||||
activeConnection = info.connection;
|
activeConnection = info.connection;
|
||||||
CanvasHelpers.showConectionActions(info.connection);
|
CanvasHelpers.showConectionActions(info.connection);
|
||||||
|
|
||||||
}, 150);
|
}, 150);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
info.connection.bind('mouseout', (connection: Connection) => {
|
info.connection.bind('mouseout', (connection: Connection) => {
|
||||||
|
try {
|
||||||
if (exitTimer) {
|
if (exitTimer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1393,6 +1400,9 @@ export default mixins(
|
||||||
activeConnection = null;
|
activeConnection = null;
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
CanvasHelpers.addConnectionActionsOverlay(info.connection,
|
CanvasHelpers.addConnectionActionsOverlay(info.connection,
|
||||||
|
|
Loading…
Reference in a new issue