Skip to content

Commit

Permalink
refactor(WindowLevelControls): List ct tags as const array
Browse files Browse the repository at this point in the history
This provides better visibility in the event it needs updating.
  • Loading branch information
bnmajor committed Oct 9, 2023
1 parent fa342ca commit a1b7475
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/tools/windowing/WindowLevelControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ export default defineComponent({
}
return '';
});
const isCT = computed(
() =>
modality.value &&
['ct', 'ctprotocol'].includes(modality.value.toLowerCase())
);
const isCT = computed(() => {
const ctTags = ['ct', 'ctprotocol'];
return modality.value && ctTags.includes(modality.value.toLowerCase());
});
const wlDefaults = computed(() => {
return { width: windowingDefaults.width, level: windowingDefaults.level };
Expand Down

0 comments on commit a1b7475

Please sign in to comment.