mirror of
https://github.com/chartdb/chartdb.git
synced 2026-01-09 05:10:11 -06:00
fix: set default filter only if has more than 1 schemas (#855)
This commit is contained in:
@@ -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] }
|
||||
: {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user