Skip to content

Commit

Permalink
console: fix tree view not refreshed after SQL execution
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#9683
GitOrigin-RevId: 6e967052b4f8024fb1166220c777f9aa9ca3fdcf
  • Loading branch information
nicoinch authored and hasura-bot committed Jul 6, 2023
1 parent d32ae8e commit 1a1e046
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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 (
Expand Down Expand Up @@ -205,9 +206,11 @@ const RawSQL = ({
selectedDriver
)
);
dispatch(_push('/data/sql'));
return;
}
dispatch(executeSQL(false, '', statementTimeout, selectedDatabase));
dispatch(_push('/data/sql'));
};

const getMigrationWarningModal = () => {
Expand Down

0 comments on commit 1a1e046

Please sign in to comment.