From cdf715dd5b16086c81e93eee542a23fc332b9638 Mon Sep 17 00:00:00 2001 From: Scott Vorthmann Date: Tue, 7 Jan 2025 08:53:56 -0800 Subject: [PATCH] Fixed early controller actions The `controllerAction()` is now guarded by `isWorkerReady()` automatically --- online/src/app/framework/context/editor.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/online/src/app/framework/context/editor.jsx b/online/src/app/framework/context/editor.jsx index 6101b1533..c27973d2e 100644 --- a/online/src/app/framework/context/editor.jsx +++ b/online/src/app/framework/context/editor.jsx @@ -169,6 +169,10 @@ const EditorProvider = props => const controllerAction = ( controller, action, parameters ) => { + if ( ! workerClient.isWorkerReady() ) { + console.log( 'Worker not ready:', action ); + return; + } const controllerPath = controller.__path .join( ':' ); if ( action === 'setProperty' ) { const { name, value } = parameters;