From e5a6681b4da303d85723695a1dfa022b2b6bde5e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 6 Aug 2023 12:47:42 +0800 Subject: [PATCH] add material to spool edit filament dropdown --- client/src/pages/spools/edit.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/pages/spools/edit.tsx b/client/src/pages/spools/edit.tsx index e4cf2f2..60172dd 100644 --- a/client/src/pages/spools/edit.tsx +++ b/client/src/pages/spools/edit.tsx @@ -25,7 +25,11 @@ export const SpoolEdit: React.FC = () => { if (!name) { name = `ID: ${item.id}`; } - const label = `${vendorPrefix}${name}`; + let material = "" + if (item.material) { + material = ` - ${item.material}`; + } + const label = `${vendorPrefix}${name}${material}`; return { label: label,