Skip to content

Commit

Permalink
Fixed early controller actions
Browse files Browse the repository at this point in the history
The `controllerAction()` is now guarded by `isWorkerReady()` automatically
  • Loading branch information
vorth committed Jan 7, 2025
1 parent a8a51b4 commit cdf715d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions online/src/app/framework/context/editor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdf715d

Please sign in to comment.