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(ui): handle null oldObj in deepDiff to prevent refresh failure #515

Conversation

JosephKav
Copy link
Collaborator

if (oldObj === undefined) return newObj;
const keys = Object.keys(oldObj).concat(Object.keys(newObj));

If 'oldObj' is null, it would get past the undefined check, but crash on Object.keys of null

fixes #514

@JosephKav JosephKav added bug Something isn't working javascript Pull requests that update Javascript code labels Jan 15, 2025
Copy link

codecov bot commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.56%. Comparing base (3cf9060) to head (41dfd61).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #515   +/-   ##
=======================================
  Coverage   98.56%   98.56%           
=======================================
  Files         120      120           
  Lines       10279    10279           
=======================================
  Hits        10130    10130           
  Misses        121      121           
  Partials       28       28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JosephKav JosephKav merged commit 757c716 into master Jan 15, 2025
7 checks passed
@JosephKav JosephKav deleted the 514-bug-the-ui-button-to-manually-refresh-the-deployed_version-doesnt-work branch January 15, 2025 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: The UI button to manually refresh the deployed_version doesn't work
1 participant