Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db8fa14

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /