mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-05-14 06:51:46 +00:00
(cherry picked from commit ad3decf71f82e5158ddf6a22965babd79c346a67) Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
e66037b007
commit
e5b72499b5
@ -45,8 +45,8 @@ export default {
|
||||
|
||||
const cpu = { ...this.resources?.cpu };
|
||||
|
||||
if (cpu.v1 !== null) cpu.v1 = String(cpu.v1);
|
||||
if (cpu.v2 !== null) cpu.v2 = String(cpu.v2);
|
||||
if (cpu.v1 !== null && cpu.v1 !== undefined) cpu.v1 = String(cpu.v1);
|
||||
if (cpu.v2 !== null && cpu.v2 !== undefined) cpu.v2 = String(cpu.v2);
|
||||
|
||||
this.value.value = JSON.stringify({ ...this.resources, cpu });
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user