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:
Vijay Prasanna 2022-10-10 18:15:41 +05:30 committed by hasura-bot
parent 948ace94e7
commit 2835a1aa98

View File

@ -16,7 +16,7 @@ const getCurrentActiveKeys = () => {
const table = params.get('table');
if (table) {
activeKey.push(JSON.stringify({ database, ...JSON.parse(table) }));
activeKey.push(JSON.stringify({ database, table: JSON.parse(table) }));
} else {
activeKey.push(JSON.stringify({ database }));
}