From 0b73b5e41631dbbf7953a840e3e97241ef7a2c3a Mon Sep 17 00:00:00 2001 From: vichansson Date: Fri, 2 Aug 2024 12:13:11 +0300 Subject: [PATCH] B OpenNebula/one#6616: Only get last backup img (#3187) Signed-off-by: Victor Hansson --- .../Forms/Vm/BackupForm/Steps/BasicConfiguration/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fireedge/src/client/components/Forms/Vm/BackupForm/Steps/BasicConfiguration/index.js b/src/fireedge/src/client/components/Forms/Vm/BackupForm/Steps/BasicConfiguration/index.js index c81b8c9ab4..6d4e3b61f3 100644 --- a/src/fireedge/src/client/components/Forms/Vm/BackupForm/Steps/BasicConfiguration/index.js +++ b/src/fireedge/src/client/components/Forms/Vm/BackupForm/Steps/BasicConfiguration/index.js @@ -46,7 +46,9 @@ const Content = (props) => { const vmBackupsConfig = vm?.BACKUPS?.BACKUP_CONFIG || {} - const incrementalBackupImageId = vm?.BACKUPS?.BACKUP_IDS?.ID + const incrementalBackupImageId = [] + .concat(vm?.BACKUPS?.BACKUP_IDS?.ID) + ?.at(-1) const incrementalBackups = 'LAST_INCREMENT_ID' in vmBackupsConfig && vmBackupsConfig?.MODE === 'INCREMENT' &&