(id: string)
| 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; |