RepoSense icon indicating copy to clipboard operation
RepoSense copied to clipboard

[#2123] Fix zoom bug if zUser is undefined

Open jonasongg opened this issue 1 year ago • 0 comments

Fixes #2123

Proposed commit message

Fix error thrown when zUser is undefined

Currently, an error is thrown when zUser is defined in c-zoom.vue. This
might be caused by zFilterSearch containing a query that returns no
results. Though this happening through normal user interaction is rare
(editing URL, for example), RepoSense should handle this case
gracefully rather than throwing an error.

Let's fix this bug by resetting the zoom view if the error happens.

Other information

jonasongg avatar Feb 19 '24 05:02 jonasongg