Skip to content

Commit 54bf665

Browse files
committed
fix(DicomWeb): expand panel at start and build fix
1 parent af41f54 commit 54bf665

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/components/DataBrowser.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,18 @@ export default defineComponent({
6565
}
6666
});
6767
68+
const openDicomWeb = computed(() => dicomWeb.isConfigured);
6869
watch(
69-
computed(() => dicomWeb.isConfigured),
70+
openDicomWeb,
7071
(configured) => {
7172
if (configured) {
7273
panels.value.push(DICOM_WEB_KEY);
7374
} else {
7475
// Remove from panels to avoid error in vuetify group.ts
7576
removeFromArray(panels.value, DICOM_WEB_KEY);
7677
}
77-
}
78+
},
79+
{ immediate: true }
7880
);
7981
8082
watch(

src/store/dicom-web/dicom-web-store.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ export const useDicomWebStore = defineStore('dicom-web', () => {
191191
if (!loadResult) {
192192
throw new Error('Did not receive a load result');
193193
}
194-
195-
if (!loadResult.ok) {
196-
throw loadResult.errors[0].cause;
194+
if (loadResult.type === 'error') {
195+
throw loadResult.error;
197196
}
198197

199198
const selection = convertSuccessResultToDataSelection(loadResult);

0 commit comments

Comments
 (0)