Skip to content

Commit

Permalink
default subrois [] for simpleannot too
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Sep 29, 2023
1 parent 8b4b5d0 commit 6ed68fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/labeling/labelingSimpleAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function initialize() {
Loading.open(document.body, 'Loading Labels Data...');
const ROIdata = await loadingData();
$D.ROI = ROIdata.ROI;
$D.subROIs = ROIdata.subROIs;
$D.subROIs = ROIdata.subROIs || [];
} catch (e) {
// statements
// redirect($D.pages.table, e, 0);
Expand Down Expand Up @@ -637,7 +637,7 @@ async function loadingData() {
const labelData = await $CAMIC.store.findLabeling({_id: labelId}).then((d)=>d[0]);


let sublabels = null;
let sublabels = [];
if (labelData.subrois&&Array.isArray(labelData.subrois)) {
sublabels =[]; // await $CAMIC.store.findLabelByIds(labelData.subrois).then((d)=>d);
}
Expand Down

0 comments on commit 6ed68fd

Please sign in to comment.