fix: various warnings and exceptions

This commit is contained in:
Fabio Di Stasio 2022-04-22 17:49:13 +02:00
parent 6af0c33461
commit c50cbc577f
17 changed files with 17 additions and 17 deletions

View File

@ -10,7 +10,7 @@
<ul class="settingbar-elements"> <ul class="settingbar-elements">
<Draggable <Draggable
v-model="connections" v-model="connections"
:item-key="uid" item-key="uid"
@start="isDragging = true" @start="isDragging = true"
@end="dragStop" @end="dragStop"
> >

View File

@ -10,7 +10,7 @@
ref="tabWrap" ref="tabWrap"
v-model="draggableTabs" v-model="draggableTabs"
tag="ul" tag="ul"
:item-key="uid" item-key="uid"
group="tabs" group="tabs"
class="tab tab-block column col-12" class="tab tab-block column col-12"
draggable=".tab-draggable" draggable=".tab-draggable"

View File

@ -246,7 +246,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction); return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction);

View File

@ -206,7 +206,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalRoutine) !== JSON.stringify(this.localRoutine); return JSON.stringify(this.originalRoutine) !== JSON.stringify(this.localRoutine);

View File

@ -182,7 +182,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalScheduler) !== JSON.stringify(this.localScheduler); return JSON.stringify(this.originalScheduler) !== JSON.stringify(this.localScheduler);

View File

@ -218,7 +218,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
defaultCollation () { defaultCollation () {
if (this.workspace.customizations.collations) if (this.workspace.customizations.collations)

View File

@ -170,7 +170,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
customizations () { customizations () {
return this.workspace.customizations; return this.workspace.customizations;

View File

@ -150,7 +150,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction); return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction);

View File

@ -158,7 +158,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalView) !== JSON.stringify(this.localView); return JSON.stringify(this.originalView) !== JSON.stringify(this.localView);

View File

@ -269,7 +269,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction); return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction);

View File

@ -226,7 +226,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalRoutine) !== JSON.stringify(this.localRoutine); return JSON.stringify(this.originalRoutine) !== JSON.stringify(this.localRoutine);

View File

@ -181,7 +181,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalScheduler) !== JSON.stringify(this.localScheduler); return JSON.stringify(this.originalScheduler) !== JSON.stringify(this.localScheduler);

View File

@ -105,7 +105,7 @@
ref="resultTable" ref="resultTable"
:list="fields" :list="fields"
class="tbody" class="tbody"
:item-key="_antares_id" item-key="_antares_id"
handle=".row-draggable" handle=".row-draggable"
> >
<template #item="{element}"> <template #item="{element}">

View File

@ -169,7 +169,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
customizations () { customizations () {
return this.workspace.customizations; return this.workspace.customizations;

View File

@ -147,7 +147,7 @@ export default {
return this.workspace.customizations; return this.workspace.customizations;
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction); return JSON.stringify(this.originalFunction) !== JSON.stringify(this.localFunction);

View File

@ -157,7 +157,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
isChanged () { isChanged () {
return JSON.stringify(this.originalView) !== JSON.stringify(this.localView); return JSON.stringify(this.originalView) !== JSON.stringify(this.localView);

View File

@ -239,7 +239,7 @@ export default {
return this.getWorkspace(this.connection.uid); return this.getWorkspace(this.connection.uid);
}, },
tabUid () { tabUid () {
return this.$vnode.key; return this.$vnode?.key;
}, },
breadcrumbsSchema () { breadcrumbsSchema () {
return this.workspace.breadcrumbs.schema || null; return this.workspace.breadcrumbs.schema || null;