fix: persist custom_icon on canvas save + add CCTV icon

- NodeSave schema was missing custom_icon field — icon reset to default on reload
- handleSave was not including custom_icon in the payload
- CameraNode now uses Cctv icon (clearer than Camera)
- Added 'cctv' entry to ICON_REGISTRY for the icon picker
This commit is contained in:
Pouzor
2026-03-08 12:00:11 +01:00
parent 88634aeb1d
commit 4511763bac
4 changed files with 6 additions and 3 deletions
+1
View File
@@ -53,6 +53,7 @@ export default function App() {
parent_id: n.data.parent_id ?? null,
container_mode: n.data.container_mode ?? false,
custom_colors: n.data.custom_colors ?? null,
custom_icon: n.data.custom_icon ?? null,
pos_x: n.position.x,
pos_y: n.position.y,
}))