diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2023-05-06 21:22:41 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2025-08-18 12:16:55 -0400 |
| commit | 51b28196c13604ec2e76e204027af36aff81b0e3 (patch) | |
| tree | 4b12f0c33b6e7c8880c8eedfdeeff7a15d43532f | |
| parent | 76702103c1a5f6c54a8aa58875ef21ce3316f4df (diff) | |
| download | pantry-51b28196c13604ec2e76e204027af36aff81b0e3.tar.gz pantry-51b28196c13604ec2e76e204027af36aff81b0e3.tar.bz2 pantry-51b28196c13604ec2e76e204027af36aff81b0e3.zip | |
Run formatting
| -rw-r--r-- | src/main/webui/src/hooks/controllers/labels.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/webui/src/hooks/controllers/labels.ts b/src/main/webui/src/hooks/controllers/labels.ts index e7ac5e0..e92d84b 100644 --- a/src/main/webui/src/hooks/controllers/labels.ts +++ b/src/main/webui/src/hooks/controllers/labels.ts @@ -1,5 +1,7 @@ import { request } from "graphql-request"; +import { useSetLabels } from ".."; +import { GRAPHQL_ENDPOINT } from "../../config"; import { PantryItemLabel, AllLabelsDocument, @@ -9,8 +11,6 @@ import { import { ApiError, errorHandler, GraphQLModelError } from "../../model"; import nullcheck from "../../util/nullcheck"; import { useToastAPIError } from "../toast"; -import { GRAPHQL_ENDPOINT } from "../../config"; -import { useSetLabels } from ".."; /** * Hook to issue query for `allLabels` to retrieve list of {@link PantryItemLabel}s. @@ -66,7 +66,7 @@ export const useSyncLabelsController = ( request(GRAPHQL_ENDPOINT, SyncLabelsDocument, variables) .then((data) => { if (nullcheck(data) && nullcheck(data?.syncLabels)) { - return data.syncLabels.map(label => ({ + return data.syncLabels.map((label) => ({ id: label?.id ?? undefined, color: label?.color ?? undefined, title: label?.title ?? undefined, |
