Skip to content

Commit

Permalink
yarn fix
Browse files Browse the repository at this point in the history
  • Loading branch information
motoki317 committed Apr 17, 2024
1 parent 4114479 commit e2dc2b0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dashboard/src/pages/builds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const builds: Component = () => {
const [commits] = createResource(
() => hashes(),
(hashes) => getRepositoryCommits(hashes),
)
)

const sortedBuilds = createMemo(
() =>
Expand Down
14 changes: 6 additions & 8 deletions dashboard/src/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
useParams,
} from '@solidjs/router'
import { type Component, createMemo, lazy } from 'solid-js'
import app from '/@/App'
import ErrorView from './components/layouts/ErrorView'
import {
getApplication,
Expand All @@ -23,7 +24,6 @@ import {
revalidateBuilds,
revalidateRepository,
} from './libs/api'
import app from '/@/App'

const loadApplicationData: RouteLoadFunc = ({ params }) => {
getApplication(params.id).then((app) => {
Expand All @@ -43,13 +43,11 @@ export const useApplicationData = () => {
if (a && b) return [a.commit, ...b.map((b) => b.commit)]
return undefined
}
const commits = createAsync(
async () => {
const h = hashes()
if (!h) return undefined
return getRepositoryCommits(h)
},
)
const commits = createAsync(async () => {
const h = hashes()
if (!h) return undefined
return getRepositoryCommits(h)
})
const refetch = async () => {
await Promise.all([revalidateApplication(params.id), revalidateBuilds(params.id)])
}
Expand Down

0 comments on commit e2dc2b0

Please sign in to comment.