mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where schema diff tool is not loading preferences on start. #7017
This commit is contained in:
@@ -20,7 +20,7 @@ import ModalProvider from '../../../../static/js/helpers/ModalProvider';
|
||||
import SchemaDiffComponent from './components/SchemaDiffComponent';
|
||||
import { BROWSER_PANELS } from '../../../../browser/static/js/constants';
|
||||
import { NotifierProvider } from '../../../../static/js/helpers/Notifier';
|
||||
import usePreferences from '../../../../preferences/static/js/store';
|
||||
import usePreferences, { listenPreferenceBroadcast } from '../../../../preferences/static/js/store';
|
||||
import pgAdmin from 'sources/pgadmin';
|
||||
import { PgAdminContext } from '../../../../static/js/BrowserComponent';
|
||||
|
||||
@@ -100,7 +100,9 @@ export default class SchemaDiff {
|
||||
return true;
|
||||
}
|
||||
|
||||
load(container, trans_id) {
|
||||
async load(container, trans_id) {
|
||||
await listenPreferenceBroadcast();
|
||||
|
||||
ReactDOM.render(
|
||||
<Theme>
|
||||
<PgAdminContext.Provider value={pgAdmin}>
|
||||
|
||||
Reference in New Issue
Block a user