add material to spool edit filament dropdown

This commit is contained in:
Thomas White
2023-08-06 12:47:42 +08:00
committed by GitHub
parent 138a7839ec
commit e5a6681b4d

View File

@@ -25,7 +25,11 @@ export const SpoolEdit: React.FC<IResourceComponentsProps> = () => {
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,