[CYS] Fix - Add back parent machine to the `designWithNoAiStateMachineDefinition` child machine option (#44397)

* Add back parent machine to the designWithoutAi child machine option

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Alba Rincón 2024-02-06 14:28:22 +01:00 committed by GitHub
parent e373a69209
commit fa9d68eed6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@ export type DesignWithoutAiComponentMeta = {
};
export const DesignWithNoAiController = ( {
parentMachine,
parentContext,
}: {
parentMachine?: AnyInterpreter;
@ -31,6 +32,7 @@ export const DesignWithNoAiController = ( {
} ) => {
const [ , , service ] = useMachine( designWithNoAiStateMachineDefinition, {
devTools: process.env.NODE_ENV === 'development',
parent: parentMachine,
context: {
...designWithNoAiStateMachineDefinition.context,
isFontLibraryAvailable:

View File

@ -0,0 +1,4 @@
Significance: minor
Type: fix
Fix - Add back the parent machine to the `designWithNoAiStateMachineDefinition` child machine option.