-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix:mirador_crash #3927
fix:mirador_crash #3927
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3927 +/- ##
=======================================
Coverage 94.59% 94.59%
=======================================
Files 315 315
Lines 14773 14776 +3
Branches 2491 2494 +3
=======================================
+ Hits 13974 13977 +3
Misses 795 795
Partials 4 4 ☔ View full report in Codecov by Sentry. |
Hi @fstoe, could you add a test case for that patch? Something like it('does not crash if json is not a manifest', () => {
const state = { manifests: { x: { json: {} } } };
const received = getManifestoInstance(state, { manifestId: 'x' });
expect(received).toBe(undefined);
}); |
Hey @lutzhelm, |
Noticed another potential issue in the catalog
I found out that adding something through the add button in the catalog view which is json but not a manifest makes the viewer crash.
steps to reproduce: