Skip to content

Commit

Permalink
fix: filter deleted services
Browse files Browse the repository at this point in the history
  • Loading branch information
truemiller committed Feb 23, 2024
1 parent 5902bb3 commit aa76ea4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/context/ServicesProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const ServicesProvider = ({ children }: PropsWithChildren) => {
const updateServicesState = useCallback(async (): Promise<void> => {
try {
return ServicesService.getServices().then((data: Service[]) => {
setServices(data);
const activeServices = data.filter((service) => service.active); // workaround until superuser permissions resolved cross platform
setServices(activeServices);
});
} catch (e) {
Promise.reject(e);
Expand Down

0 comments on commit aa76ea4

Please sign in to comment.