1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-17 04:00:48 +01:00

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} * @returns {Promise}
* @memberof AntaresCore * @memberof AntaresCore
*/ */
async run (args) { run (args) {
const rawQuery = this.getSQL(); const rawQuery = this.getSQL();
this._resetQuery(); this._resetQuery();
return this.raw(rawQuery, args); return this.raw(rawQuery, args);

View File

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