Skip to content

Commit

Permalink
fix: empty query tab schema select if no schema selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Jun 2, 2022
1 parent caf776b commit 31b7999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/components/BaseSelect.vue
Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/WorkspaceTabQuery.vue
Expand Up @@ -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>
Expand Down

0 comments on commit 31b7999

Please sign in to comment.