Skip to content

Commit

Permalink
fix(display messages): broken after timings (#3719)
Browse files Browse the repository at this point in the history
  • Loading branch information
sedghi authored Oct 11, 2023
1 parent 75c3f94 commit 157b88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/default/src/getDisplaySetMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export default function getDisplaySetMessages(
isReconstructable: boolean
): DisplaySetMessageList {
const messages = new DisplaySetMessageList();
const firstInstance = instances[0];
if (!instances.length || firstInstance) {
if (!instances.length) {
messages.addMessage(DisplaySetMessage.CODES.NO_VALID_INSTANCES);
return;
}

const firstInstance = instances[0];
const { Modality, ImageType, NumberOfFrames } = firstInstance;
// Due to current requirements, LOCALIZER series doesn't have any messages
if (ImageType?.includes('LOCALIZER')) {
Expand Down

0 comments on commit 157b88c

Please sign in to comment.