style: auto-fix lint and format
This commit is contained in:
1 parent
5899e1b44b
commit
4bfde12b65
2 files changed
+2
-4
No files matched your search
@@ -41,9 +41,7 @@ const parseWidgetQueryKey = (queryKey: readonly unknown[]): { procedure: string;
|
||||
const procedure = first.slice(1).map(capitalize).join(" — ");
|
||||
|
||||
const second = queryKey[1] as { input?: Record<string, unknown> } | undefined;
|
||||
const integrationIds = Array.isArray(second?.input?.integrationIds)
|
||||
? (second.input.integrationIds as string[])
|
||||
: [];
|
||||
const integrationIds = Array.isArray(second?.input?.integrationIds) ? (second.input.integrationIds as string[]) : [];
|
||||
|
||||
return { procedure, integrationIds };
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@ export const getCurrentLayout = (board: RouterOutputs["board"]["getBoardByName"]
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
if (typeof window === "undefined") return board.layouts.at(0)!.id;
|
||||
|
||||
const sortedLayouts = board.layouts.sort((layoutA, layoutB) => layoutB.breakpoint - layoutA.breakpoint);
|
||||
const sortedLayouts = board.layouts.toSorted((layoutA, layoutB) => layoutB.breakpoint - layoutA.breakpoint);
|
||||
|
||||
// Fallback to smallest if none exists with breakpoint smaller than window width
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
|
||||
Reference in new issue
Block a user