mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
fix: empty query tab schema select if no schema selected
This commit is contained in:
@ -154,7 +154,7 @@ export default defineComponent({
|
|||||||
if (typeof prop === 'function')
|
if (typeof prop === 'function')
|
||||||
return prop(item);
|
return prop(item);
|
||||||
|
|
||||||
return item[prop] || item;
|
return item[prop] !== undefined ? item[prop] : item;
|
||||||
};
|
};
|
||||||
|
|
||||||
const flattenOptions = computed(() => {
|
const flattenOptions = computed(() => {
|
||||||
|
@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
<BaseSelect
|
<BaseSelect
|
||||||
v-model="selectedSchema"
|
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"
|
class="form-select select-sm text-bold"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user