-
Notifications
You must be signed in to change notification settings - Fork 4.8k
fix: empty catch blocks, falsy JSON escape, and stale closure in workers #42039
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
Changes from all commits
aa1f7ce
bafbb3f
2aaed07
9eb177c
4acd54f
c0861e8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -100,9 +100,7 @@ export const getDifferenceInJSCollection = ( | |||||||||
| ); | ||||||||||
|
|
||||||||||
| if (updateExisting) { | ||||||||||
| const indexOfArchived = toBearchivedActions.findIndex((js) => { | ||||||||||
| js.id === updateExisting.id; | ||||||||||
| }); | ||||||||||
| const indexOfArchived = toBearchivedActions.findIndex((js) => js.id === updateExisting.id); | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Format the changed predicate with Prettier. Line 103 is overlong and should be wrapped to satisfy the repository’s formatting check. As per coding guidelines, files under Suggested formatting- const indexOfArchived = toBearchivedActions.findIndex((js) => js.id === updateExisting.id);
+ const indexOfArchived = toBearchivedActions.findIndex(
+ (js) => js.id === updateExisting.id,
+ );📝 Committable suggestion
Suggested change
🤖 Prompt for AI AgentsSource: Coding guidelines |
||||||||||
|
|
||||||||||
| //will be part of new nameChangedActions for now | ||||||||||
| toBeUpdatedActions.push({ | ||||||||||
|
|
||||||||||
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Return a safe
DynamicValuesshape for missing actions.Casting
{}toDynamicValueshides missing fields.app/client/src/components/formControls/SegmentedControl.tsxassignsdynamicFetchedValues.datadirectly tooptions, so this path changes the initialized[]toundefinedwhenactionIdis unavailable. Return typed defaults or coalesce these fields in the consumer.As per coding guidelines, ensure TypeScript types are correct; this cast masks the required
DynamicValuesfields.🤖 Prompt for AI Agents
Source: Coding guidelines