Remove redundant typing in builder API client

This commit is contained in:
Andrew Kingston 2024-12-12 14:55:15 +00:00
parent 61b42d316b
commit 3a51a81e50
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ import { get } from "svelte/store"
import { auth, navigation } from "./stores/portal"
export const API = createAPIClient({
attachHeaders: (headers: Record<string, string>) => {
attachHeaders: headers => {
// Attach app ID header from store
let appId = get(appStore).appId
if (appId) {
@ -22,7 +22,7 @@ export const API = createAPIClient({
}
},
onError: (error: any) => {
onError: error => {
const { url, message, status, method, handled } = error || {}
// Log any errors that we haven't manually handled
@ -45,7 +45,7 @@ export const API = createAPIClient({
}
}
},
onMigrationDetected: (appId: string) => {
onMigrationDetected: appId => {
const updatingUrl = `/builder/app/updating/${appId}`
if (window.location.pathname === updatingUrl) {