console: fix tree view not refreshed after SQL execution

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9683
GitOrigin-RevId: 6e967052b4f8024fb1166220c777f9aa9ca3fdcf
This commit is contained in:
Nicolas Inchauspe 2023-07-06 10:25:28 +02:00 committed by hasura-bot
parent d32ae8ea05
commit 1a1e046b47

View File

@ -42,6 +42,7 @@ import { unsupportedRawSQLDrivers } from './utils';
import { nativeDrivers } from '../../../../features/DataSource';
import { useRunSQL } from './hooks/useRunSQL';
import { useFireNotification } from '../../../../new-components/Notifications';
import _push from '../push';
const checkChangeLang = (sql, selectedDriver) => {
return (
@ -205,9 +206,11 @@ const RawSQL = ({
selectedDriver
)
);
dispatch(_push('/data/sql'));
return;
}
dispatch(executeSQL(false, '', statementTimeout, selectedDatabase));
dispatch(_push('/data/sql'));
};
const getMigrationWarningModal = () => {