Skip to content

Commit

Permalink
Make typescript happy
Browse files Browse the repository at this point in the history
  • Loading branch information
smrtrfszm committed Sep 24, 2024
1 parent 22a4a00 commit ef37030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Information.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PageRenderer from '~/components/PageRenderer'
import { InformationMenu } from '~/components/InformationMenu'

const InformationPage: Component<RouteSectionProps> = (props) => {
const data = createAsync(queryInformationMenu)
const data = createAsync(() => queryInformationMenu())

const href = (data: MenuItem[]) => {
for (const item of data) {
Expand All @@ -28,7 +28,7 @@ const InformationPage: Component<RouteSectionProps> = (props) => {
export default InformationPage

export const InformationPageWithSlug: Component<RouteSectionProps> = (props) => {
const menu = createAsync(queryInformationMenu)
const menu = createAsync(() => queryInformationMenu())
const page = createAsync(() => queryPageByID(props.params.slug))

return (
Expand Down

0 comments on commit ef37030

Please sign in to comment.