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:
@@ -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,
|
||||
}))
|
||||
|
||||
Reference in New Issue
Block a user