fix: exception on QueryEditor with null modelValue

This commit is contained in:
Fabio Di Stasio 2022-07-18 14:43:38 +02:00
parent b4d14d98db
commit 9bc9adb7cf
1 changed files with 1 additions and 0 deletions

View File

@ -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(' ')