fix: set default filter only if has more than 1 schemas (#855)

This commit is contained in:
Guy Ben-Aharon
2025-08-14 11:37:24 +03:00
committed by GitHub
parent 1759b0b9f2
commit b4ccfcdcde

View File

@@ -74,7 +74,7 @@ export const DiagramFilterProvider: React.FC<React.PropsWithChildren> = ({
if (!filterToSet) {
// If no filter is stored, set default based on database type
filterToSet =
schemas.length > 0
schemas.length > 1
? { schemaIds: [schemas[0].id] }
: {};
}