mirror of https://github.com/Fabio286/antares.git
fix: exception on QueryEditor with null modelValue
This commit is contained in:
parent
b4d14d98db
commit
9bc9adb7cf
|
@ -69,6 +69,7 @@ const tables = computed(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const tablesInQuery = computed(() => {
|
const tablesInQuery = computed(() => {
|
||||||
|
if (!props.modelValue) return [];
|
||||||
const words = props.modelValue
|
const words = props.modelValue
|
||||||
.replaceAll(/[.'"`]/g, ' ')
|
.replaceAll(/[.'"`]/g, ' ')
|
||||||
.split(' ')
|
.split(' ')
|
||||||
|
|
Loading…
Reference in New Issue