fix: internal exceptions

This commit is contained in:
Fabio Di Stasio 2021-06-05 10:15:44 +02:00
parent ab54eb086f
commit 8742fa10f0
2 changed files with 3 additions and 3 deletions

View File

@ -140,7 +140,7 @@ export class AntaresCore {
* @returns {Promise}
* @memberof AntaresCore
*/
async run (args) {
run (args) {
const rawQuery = this.getSQL();
this._resetQuery();
return this.raw(rawQuery, args);

View File

@ -10,7 +10,7 @@
>
<template v-if="cKey !== '_id'">
<span
v-if="!isInlineEditor[cKey]"
v-if="!isInlineEditor[cKey] && fields[cKey]"
class="cell-content px-2"
:class="`${isNull(col)} ${typeClass(fields[cKey].type)}`"
@dblclick="editON($event, col, cKey)"
@ -348,7 +348,7 @@ export default {
return false;
},
enumArray () {
if (this.fields[this.editingField].enumValues)
if (this.fields[this.editingField] && this.fields[this.editingField].enumValues)
return this.fields[this.editingField].enumValues.replaceAll('\'', '').split(',');
return false;
}