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">
<Draggable
v-model="connections"
:item-key="uid"
item-key="uid"
@start="isDragging = true"
@end="dragStop"
>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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