Skip to content

[CB] Error in the console when opening the admin panel#4194

Merged
devnaumov merged 7 commits intodevelfrom
5495-cb-error-in-the-console-when-opening-the-admin-panel
Mar 11, 2026
Merged

[CB] Error in the console when opening the admin panel#4194
devnaumov merged 7 commits intodevelfrom
5495-cb-error-in-the-console-when-opening-the-admin-panel

Conversation

@sergeyteleshev
Copy link
Copy Markdown
Contributor

}

create(): IFormState<null> {
open(): IFormState<null> {
Copy link
Copy Markdown
Member

@devnaumov devnaumov Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not opening anything here, we are creating formState instance here, why change name to open?
Usually you need to create separate method in service, name it open and call create from stateManager.create from there. Manager is just for state, it does not know anything about panels and etc so cant have open method

const configurationWizardService = useService(ConfigurationWizardService);

const formState = serverConfigurationFormStateManager.formState!;
const formState = serverConfigurationFormStateManager.open();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you need to remove ! and change logic to respect that fact that formState might be not initialized, you can do it by moving all dependent logic into different component that will accept formState as a prop and in this component you will display some message instead of form

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay!

image

@devnaumov devnaumov merged commit 9a94639 into devel Mar 11, 2026
10 checks passed
@devnaumov devnaumov deleted the 5495-cb-error-in-the-console-when-opening-the-admin-panel branch March 11, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants