mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
fix (console): tree nav auto-select when table/database is present in the route
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6205 GitOrigin-RevId: 61d89f4dbd2fac0fca58c0c7eefe735856637a42
This commit is contained in:
parent
948ace94e7
commit
2835a1aa98
@ -16,7 +16,7 @@ const getCurrentActiveKeys = () => {
|
|||||||
const table = params.get('table');
|
const table = params.get('table');
|
||||||
|
|
||||||
if (table) {
|
if (table) {
|
||||||
activeKey.push(JSON.stringify({ database, ...JSON.parse(table) }));
|
activeKey.push(JSON.stringify({ database, table: JSON.parse(table) }));
|
||||||
} else {
|
} else {
|
||||||
activeKey.push(JSON.stringify({ database }));
|
activeKey.push(JSON.stringify({ database }));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user