From 8e466befb465b537452a6d2a8161897e1359ff47 Mon Sep 17 00:00:00 2001 From: Michael Macherey Date: Wed, 11 Oct 2017 14:40:52 +0200 Subject: [PATCH] Fix Shortcuts help menu doesn't dismiss forever. --- client/coral-admin/src/index.js | 1 + client/coral-framework/services/bootstrap.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/client/coral-admin/src/index.js b/client/coral-admin/src/index.js index 736d3efc9..442a4f536 100644 --- a/client/coral-admin/src/index.js +++ b/client/coral-admin/src/index.js @@ -23,6 +23,7 @@ function init({store, storage}) { async function main() { const notification = createNotificationService(toast); const context = await createContext({reducers, graphqlExtension, pluginsConfig, notification, init}); + render( diff --git a/client/coral-framework/services/bootstrap.js b/client/coral-framework/services/bootstrap.js index 492f6cc40..d64b769e3 100644 --- a/client/coral-framework/services/bootstrap.js +++ b/client/coral-framework/services/bootstrap.js @@ -178,6 +178,10 @@ export async function createContext({ await preInit(context); } + if (init) { + await init(context); + } + // Run initialization. await Promise.all([init, plugins.executeInit(context)]); return context;