Skip to content

Commit ccf3073

Browse files
committed
Fixed Uncaught TypeError when no data plans provided
1 parent 8506ce2 commit ccf3073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/deploying.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ $(document).ready(() => {
125125
settings.scratchOrgDef = doc['scratch-org-def'];
126126
settings.showScratchOrgUrl = doc['show-scratch-org-url'];
127127
settings.openPath = doc['open-path'];
128-
129-
const dataPlanCount = doc['data-plans'].length;
128+
129+
const dataPlanCount = doc['data-plans'] ? doc['data-plans'].length : 0;
130130

131131
if (dataPlanCount > 0) {
132132

0 commit comments

Comments
 (0)