From af26542a26b392bea04179564ee48e812da6ff38 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Thu, 25 Aug 2022 10:29:47 +0800 Subject: [PATCH] fix: fix volume download data Update the attachments info in the volume download data is consistent with the list display Change-Id: Ieb43181f12a328d1a34035cb51cddea0416beb47 --- src/resources/cinder/volume.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resources/cinder/volume.jsx b/src/resources/cinder/volume.jsx index c1d158a9..88436b11 100644 --- a/src/resources/cinder/volume.jsx +++ b/src/resources/cinder/volume.jsx @@ -317,7 +317,10 @@ export const getVolumeColumnsList = (self) => { stringify: (value) => { if (value && value.length) { return value - .map((it) => `${it.server_name}(${it.server_id})`) + .map((it) => { + const { device, server_name, server_id } = it; + return `${device} on ${server_name || '-'}(${server_id})`; + }) .join(','); } return '-';