Skip to content

Commit 1730f8f

Browse files
committed
ts and lint fixes
1 parent c46e372 commit 1730f8f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

frontend/src/pages/admin/app-settings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { createComponent, LocationService, Router, Shade } from '@furystack/shades'
2+
import type { MatchResult } from 'path-to-regexp'
23
import { PiRatLazyLoad } from '../../components/pirat-lazy-load.js'
34
import { SettingsMenuItem, SettingsMenuSection, SettingsSidebar } from '../../components/settings-sidebar/index.js'
45

@@ -49,7 +50,7 @@ const settingsRoutes = [
4950
},
5051
{
5152
url: '/app-settings/users/:username',
52-
component: ({ match }) => (
53+
component: ({ match }: { match: MatchResult<{ username: string }> }) => (
5354
<PiRatLazyLoad
5455
component={async () => {
5556
const { UserDetailsPage } = await import('./user-details.js')

frontend/src/pages/admin/user-list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const UserListPage = Shade<UserListPageProps>({
3030

3131
const handleRetry = () => {
3232
usersService.userQueryCache.flushAll()
33-
usersService.findUsers({})
33+
void usersService.findUsers({})
3434
}
3535

3636
const getErrorMessage = (error: unknown): string => {

frontend/src/services/users-service.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,7 @@ export class UsersService {
5959
url: { id: username },
6060
body,
6161
})
62-
this.userCache.setExplicitValue({
63-
loadArgs: [username],
64-
value: { status: 'loaded', value: result, updatedAt: new Date() },
65-
})
62+
this.userCache.setObsolete(username)
6663
this.userQueryCache.flushAll()
6764
return result
6865
}

0 commit comments

Comments
 (0)