Skip to content

Commit 94241d3

Browse files
committed
default null to zero for spinner and currentStepIndex
1 parent 459421d commit 94241d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/sdcCollection/SDCCollectionSummary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export default {
276276
return this.instituteCollectionID !== null;
277277
},
278278
calculateStep() {
279-
this.noOfStepsCompleted = this.currentStepIndex;
279+
this.noOfStepsCompleted = this.currentStepIndex ?? 0;
280280
this.incomingChartData = [this.noOfStepsCompleted, (this.totalStepsInCollection - this.noOfStepsCompleted)];
281281
},
282282
getHistoricCollections() {

0 commit comments

Comments
 (0)