mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
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:
parent
d32ae8ea05
commit
1a1e046b47
@ -42,6 +42,7 @@ import { unsupportedRawSQLDrivers } from './utils';
|
|||||||
import { nativeDrivers } from '../../../../features/DataSource';
|
import { nativeDrivers } from '../../../../features/DataSource';
|
||||||
import { useRunSQL } from './hooks/useRunSQL';
|
import { useRunSQL } from './hooks/useRunSQL';
|
||||||
import { useFireNotification } from '../../../../new-components/Notifications';
|
import { useFireNotification } from '../../../../new-components/Notifications';
|
||||||
|
import _push from '../push';
|
||||||
|
|
||||||
const checkChangeLang = (sql, selectedDriver) => {
|
const checkChangeLang = (sql, selectedDriver) => {
|
||||||
return (
|
return (
|
||||||
@ -205,9 +206,11 @@ const RawSQL = ({
|
|||||||
selectedDriver
|
selectedDriver
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
dispatch(_push('/data/sql'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
dispatch(executeSQL(false, '', statementTimeout, selectedDatabase));
|
dispatch(executeSQL(false, '', statementTimeout, selectedDatabase));
|
||||||
|
dispatch(_push('/data/sql'));
|
||||||
};
|
};
|
||||||
|
|
||||||
const getMigrationWarningModal = () => {
|
const getMigrationWarningModal = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user