Skip to content
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(common): Sort Service could throw on 3 clicks with undefined columnId #1059

Merged
merged 1 commit into from Aug 1, 2023

Conversation

ghiscoding
Copy link
Owner

- fixes issue found in Angular-Slickgrid ghiscoding/Angular-Slickgrid#1215
- when `multiColumnSort` is disabled, the 3rd clicks will not provide a sortCol object and was throwing an error for that reason, so use optional chaining to make sure it's defined before reading its sort column id
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #1059 (502e1d9) into master (57a3a04) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master     #1059   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          244       244           
  Lines        16564     16564           
  Branches      5933      5933           
=========================================
  Hits         16564     16564           
Files Changed Coverage Δ
packages/common/src/services/sort.service.ts 100.00% <100.00%> (ø)

@ghiscoding ghiscoding merged commit 1141230 into master Aug 1, 2023
5 checks passed
@ghiscoding ghiscoding deleted the bugfix/tristate-sort-error branch August 1, 2023 18:46
@ghiscoding ghiscoding changed the title fix(common): Sort Service could throw on 3rd with undefined columnId fix(common): Sort Service could throw on 3 clicks with undefined columnId Aug 21, 2023
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.

None yet

1 participant