From 1919a36870f0e88344d9961c9b2f44f5ee191c77 Mon Sep 17 00:00:00 2001 From: xusongfu Date: Thu, 18 Jan 2024 16:04:04 +0800 Subject: [PATCH] Fix: fix error message of batch deleting Fix volume name for volume snapshot batch deleting Change-Id: I4858d9315397fa2833f34e0ec56d634780946755 --- src/pages/storage/containers/Snapshot/actions/Delete.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/storage/containers/Snapshot/actions/Delete.jsx b/src/pages/storage/containers/Snapshot/actions/Delete.jsx index 182a35a3..7f92341e 100644 --- a/src/pages/storage/containers/Snapshot/actions/Delete.jsx +++ b/src/pages/storage/containers/Snapshot/actions/Delete.jsx @@ -51,7 +51,7 @@ export default class DeleteAction extends ConfirmAction { name: snapshot.name, }); if (this.hasCreatedVolumes(snapshot)) { - const volumeNames = child_volumes.join(', '); + const volumeNames = child_volumes.map((it) => it.volume_name).join(', '); errorMsg = t( 'You are not allowed to delete snapshot "{ name }", which is used by creating volume "{volumes}".', { name: snapshot.name, volumes: volumeNames }