-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update view Timestamp logic to fix setAmendmentState problem #4412
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 |
---|---|---|
|
@@ -47,7 +47,8 @@ export class AmendmentControllerService { | |
(prev, curr) => | ||
prev?.length === curr?.length && | ||
Math.max(...prev.map(e => e.viewModelUpdateTimestamp)) === | ||
Math.max(...curr.map(e => e.viewModelUpdateTimestamp)) | ||
Math.max(...curr.map(e => e.viewModelUpdateTimestamp)) && | ||
prev?.map(e => e.state_id).equals(curr?.map(e => e.state_id)) | ||
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. I guess the problem is, that entries get replaced by older entries while the array size stays the same. Probably it would be better to check for the
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. Also this should be done in |
||
) | ||
); | ||
} | ||
|
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.
This is done on model level (line 729) in
base-repository.ts
. Doing it here again is unnecessary. Remove it.