mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-06 05:24:33 +08:00
fix: Fix crash when adding custom spec if specs is null (#9708)
This commit is contained in:
parent
57b76d97ec
commit
db8fa144eb
1 changed files with 1 additions and 1 deletions
|
@ -834,7 +834,7 @@ const search = async () => {
|
|||
form.type = res.data.type;
|
||||
form.specCustom = res.data.specCustom;
|
||||
form.spec = res.data.spec;
|
||||
form.specs = res.data.specs;
|
||||
form.specs = res.data.specs || [];
|
||||
if (!form.specCustom && form.spec) {
|
||||
let objs = [];
|
||||
for (const item of res.data.spec.split(',')) {
|
||||
|
|
Loading…
Add table
Reference in a new issue