From 737efb892a844238c3fea6bd18ebd15ee75df20e Mon Sep 17 00:00:00 2001 From: mark stoker Date: Tue, 2 Apr 2024 12:54:04 +0200 Subject: [PATCH] cleanup --- src/features/Kanalen/service.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/features/Kanalen/service.ts b/src/features/Kanalen/service.ts index 61b636b9c..3c01fac65 100644 --- a/src/features/Kanalen/service.ts +++ b/src/features/Kanalen/service.ts @@ -2,16 +2,22 @@ import { fetchLoggedIn, ServiceResult, throwIfNotOk } from "@/services"; async function fetchAll(url: string) { return await fetchLoggedIn(url) - .then(throwIfNotOk) - .then((r) => r.json()); + .then(throwIfNotOk) + .then((r) => r.json()); } export function useKanalen() { - const kanalen = ServiceResult.fromFetcher("/api/KanalenBeheerOverzicht", fetchAll, { poll: false } ); + const kanalen = ServiceResult.fromFetcher( + "/api/KanalenBeheerOverzicht", + fetchAll, + ); - return kanalen + return kanalen; } export function useKanalenKeuzeLijst() { - return ServiceResult.fromFetcher("/api/KanalenContactmomentKeuzelijst", fetchAll); -} \ No newline at end of file + return ServiceResult.fromFetcher( + "/api/KanalenContactmomentKeuzelijst", + fetchAll, + ); +}