MCPcopy
hub / github.com/cpaczek/skylight / removeProfile

Function removeProfile

web/src/control/Control.tsx:113–114  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

111 set({ locationProfiles: [...rest, profile] });
112 };
113 const removeProfile = (id: string) =>
114 set({ locationProfiles: cfg.locationProfiles.filter((p) => p.id !== id) });
115 const centerOnTraffic = () => {
116 const ac = state.aircraft.filter((a) => a.lat != null && a.lon != null);
117 if (!ac.length) return;

Callers 1

ControlFunction · 0.85

Calls 1

setFunction · 0.85

Tested by

no test coverage detected