-
Notifications
You must be signed in to change notification settings - Fork 663
HTMLEditor: Handle integration errors #29741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTMLEditor: Handle integration errors #29741
Conversation
eb2e2f7 to
c134dc3
Compare
8deca4b to
f733325
Compare
.../testing/tests/DevExpress.ui.widgets.htmlEditor/htmlEditorParts/aiDialogIntegration.tests.js
Outdated
Show resolved
Hide resolved
.../testing/tests/DevExpress.ui.widgets.htmlEditor/htmlEditorParts/aiDialogIntegration.tests.js
Outdated
Show resolved
Hide resolved
.../testing/tests/DevExpress.ui.widgets.htmlEditor/htmlEditorParts/aiDialogIntegration.tests.js
Outdated
Show resolved
Hide resolved
.../testing/tests/DevExpress.ui.widgets.htmlEditor/htmlEditorParts/aiDialogIntegration.tests.js
Outdated
Show resolved
Hide resolved
.../testing/tests/DevExpress.ui.widgets.htmlEditor/htmlEditorParts/aiDialogIntegration.tests.js
Outdated
Show resolved
Hide resolved
02cc3f9 to
bfeeea9
Compare
| } | ||
| }; | ||
|
|
||
| export const hasInvalidCustomCommand = (commandsMap: CommandsMap): boolean => Object.keys(commandsMap).some((command) => command.startsWith('custom') && !commandsMap[command].prompt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really long string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, but I can't find a shorter name that will describe the function better. Also, I have seen longer function names in the codebase. If it's not critical, I would like to leave it as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ruslan, you can just wrap body with {}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter automatically fixes it to be in one line. We don't want to ignore this rule :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can extract commandNames variable, then it gotta be okay. But it's a minor so let's not waste time
Co-authored-by: Ruslan Farkhutdinov <ruslan.farkhutdinov@devexpress.com>
No description provided.