mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 13:18:49 +08:00
Fix undefined error in VM edit as yaml page (#233)
* fix undefined error whenclick save in edit as yaml Signed-off-by: Andy Lee <andy.lee@suse.com> * fix VM isEqual logic and fix undefined error Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
1 parent
19bea97106
commit
238c660796
4 files changed
+25
-9
No files matched your search
@@ -871,7 +871,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
if (out.length === 0 && !!this.spec.template.spec.accessCredentials) {
|
||||
if (out.length === 0 && !!this.spec.template.spec.accessCredentials === false) {
|
||||
delete this.spec.template.spec.accessCredentials;
|
||||
} else {
|
||||
this.spec.template.spec.accessCredentials = out;
|
||||
|
||||
Reference in new issue
Block a user