Skip to content

Commit 79bc969

Browse files
fix: deposit form bug
1 parent e1b396f commit 79bc969

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components

cds/modules/theme/assets/bootstrap3/js/cds_deposit/avc/components/cdsDeposit.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,16 @@ function cdsDepositCtrl(
236236
};
237237
});
238238
_.forEach(that.record._cds.state, function (value, state) {
239-
that.stateReporter[state].status = value;
239+
if (!that.stateReporter[state]) {
240+
// Task not in mainStatuses, add `file_video_extract_chapter_frames`
241+
that.stateReporter[state] = {
242+
status: value,
243+
message: state
244+
};
245+
} else {
246+
// Update existing
247+
that.stateReporter[state].status = value;
248+
}
240249
});
241250
that.calculateCurrentDepositStatus();
242251
};

0 commit comments

Comments
 (0)