-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix issue #14 #46
Fix issue #14 #46
Changes from all commits
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 |
---|---|---|
|
@@ -55,7 +55,7 @@ export const reducer = <T extends object>( | |
draft.status = Status.IN_PROGRESS; | ||
break; | ||
case EntityActions.DELETE_ENTITY_SUCCESS: | ||
draft.status = Status.SUCCESS; | ||
draft.status = Status.DELETE_SUCCESS; | ||
break; | ||
// case EntityActions.DELETE_ENTITY_ERROR: | ||
// draft.status = Status.ERROR; | ||
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. Based on the given code patch, here are a few observations and suggestions for improvement:
Remember that without seeing the complete code and its surrounding context, it's difficult to provide a thorough review. |
||
|
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.
Unfortunately, I cannot see the actual code patch you mentioned. However, based on the information provided, it appears that you are modifying an enum called
Status
. You have added a new enum value calledDELETE_SUCCESS
to the enum.For a brief code review, here are a few suggestions:
Status
toStatusCode
or something similar to follow common naming conventions.DELETE_SUCCESS
. This can provide additional clarity for developers who use this enum.Without the actual code implementation, it's challenging to identify potential bug risks or further improvements. If you provide the relevant code, I'll be happy to assist you with a more extensive review.