-
Notifications
You must be signed in to change notification settings - Fork 257
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:mirador_crash #3927
base: main
Are you sure you want to change the base?
fix:mirador_crash #3927
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3927 +/- ##
==========================================
- Coverage 94.59% 94.58% -0.01%
==========================================
Files 315 315
Lines 14759 14762 +3
Branches 2490 2490
==========================================
+ Hits 13961 13963 +2
- Misses 794 795 +1
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, |
expect(typeof received.getSequences).toBe('function'); | ||
|
||
expect(received.getSequences()).toEqual([]); | ||
}); | ||
it('is cached based off of input props', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test has been removed on main
. I don't know the reason, but it's the cause of the current merge conflict. Could you resolve this conflict e.g. by merging main
into this branch? Just be sure that the test case actually stays removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done :)
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: