Skip to content

Commit

Permalink
fix: more lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Meierschlumpf committed Aug 1, 2024
1 parent b5b9644 commit 7fb0684
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/src/app/[locale]/auth/login/_login-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export const LoginForm = ({ providers, oidcClientName, isOidcAutoLoginEnabled, c
const onSuccess = useCallback(
async (response: Awaited<ReturnType<typeof signIn>>) => {
if (response && (!response.ok || response.error)) {
// eslint-disable-next-line @typescript-eslint/only-throw-error
throw response.error;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const initializeGridstack = ({ section, refs, sectionColumnCount }: Initi
grid.removeAll(false);
section.items.forEach(({ id }) => {
const ref = refs.items.current[id]?.current;
ref && grid.makeWidget(ref);
if (!ref) return;

grid.makeWidget(ref);
});
grid.batchUpdate(false);
return true;
Expand Down
2 changes: 1 addition & 1 deletion packages/widgets/src/calendar/serverData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default async function getServerDataAsync({ integrationIds, itemId }: Wid
)
.flatMap((item) => item.data),
};
} catch (error) {
} catch {
return {
initialData: [],
};
Expand Down
2 changes: 1 addition & 1 deletion packages/widgets/src/dns-hole/summary/serverData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default async function getServerDataAsync({ integrationIds }: WidgetProps
return {
initialData: data,
};
} catch (error) {
} catch {
return {
initialData: undefined,
};
Expand Down

0 comments on commit 7fb0684

Please sign in to comment.