1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-02-01 09:56:54 +01:00

fix: empty query tab schema select if no schema selected

This commit is contained in:
Fabio Di Stasio 2022-06-02 09:46:49 +02:00
parent caf776bd55
commit 31b7999bba
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ export default defineComponent({
if (typeof prop === 'function')
return prop(item);
return item[prop] || item;
return item[prop] !== undefined ? item[prop] : item;
};
const flattenOptions = computed(() => {

View File

@ -151,7 +151,7 @@
<BaseSelect
v-model="selectedSchema"
:options="[{value: 'null', label: $t('message.noSchema')}, ...databaseSchemas.map(el => ({label: el, value: el}))]"
:options="[{value: null, label: $t('message.noSchema')}, ...databaseSchemas.map(el => ({label: el, value: el}))]"
class="form-select select-sm text-bold"
/>
</div>