Skip to content

Commit db8fa14

Browse files
authored
fix: Fix crash when adding custom spec if specs is null (1Panel-dev#9708)
1 parent 57b76d9 commit db8fa14

File tree

1 file changed

+1
-1
lines changed
  • frontend/src/views/cronjob/cronjob/operate

1 file changed

+1
-1
lines changed

frontend/src/views/cronjob/cronjob/operate/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ const search = async () => {
834834
form.type = res.data.type;
835835
form.specCustom = res.data.specCustom;
836836
form.spec = res.data.spec;
837-
form.specs = res.data.specs;
837+
form.specs = res.data.specs || [];
838838
if (!form.specCustom && form.spec) {
839839
let objs = [];
840840
for (const item of res.data.spec.split(',')) {

0 commit comments

Comments
 (0)