codecharta
codecharta copied to clipboard
Error on Focus missing buildings
Bug
Expected Behavior
GIVEN
loaded codecharta.cc.json with missing building for sortByMetricName.ts
due to too less map space
WHEN
open the file explorer / tree map then open context menu for sortByMetricName.ts
and click "focus"
THEN to be discussed (no buliding, no focus effect?)
Actual Behavior
a console error occurs
Screenshots
Specifications
- is released in online-demo: yes | no
- CodeCharta Version: 1.87.1
- OS: all
- Browser: all
The error should be very straight forward to get rid of (just make it optional). However, I suggest to do something different: check if a file is actually rendered or if it's invisible. If it's the latter, do not show the regular dropdown but instead, let the user know that the file is not visual due to being empty (or very small).
After fixing the margins this should only apply to empty files.
This will be resolved by #3123 and #3113.
This bug is fixed as mentioned above.