Skip to content

Commit

Permalink
fix: frontend build
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Jul 26, 2024
1 parent 2f1e5d0 commit 1cd494e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions izanami-frontend/src/pages/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export function Settings() {
queryConfiguration()
);

const configurationMutationQuery = useMutation((data: Configuration) =>
updateConfiguration(data)
const configurationMutationQuery = useMutation(
(data: Omit<Configuration, "version">) => updateConfiguration(data)
);

if (configurationQuery.isLoading) {
Expand Down
2 changes: 1 addition & 1 deletion izanami-frontend/src/utils/queries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export function queryStats(): Promise<object> {
}

export function updateConfiguration(
configuration: Configuration
configuration: Omit<Configuration, "version">
): Promise<undefined> {
return handleFetchWithoutResponse(
fetch("/api/admin/configuration", {
Expand Down

0 comments on commit 1cd494e

Please sign in to comment.