show single schema only if it is default schema

This commit is contained in:
SPRINX0\prochazka
2024-09-26 10:01:02 +02:00
parent 338180a21a
commit 3603501ae2

View File

@@ -32,7 +32,8 @@
$appliedCurrentSchema = selectedSchema;
} else {
const usedSchemas = Object.keys(countBySchema);
if (usedSchemas.length == 1) {
const defaultSchema = findDefaultSchema(schemaList, driver?.dialect);
if (usedSchemas.length == 1 && usedSchemas[0] == defaultSchema) {
$appliedCurrentSchema = usedSchemas[0];
} else {
$appliedCurrentSchema = null;
@@ -132,6 +133,7 @@
<InlineButton
on:click={() => {
selectedSchema = null;
localStorage.removeItem(valueStorageKey);
}}
title="Reset to default"
>