Skip to content

Commit 3c37826

Browse files
awesomeYGawesomeYG
andauthored
fix: ts error (#44)
Co-authored-by: awesomeYG <gang.yang@chaitin.com>
1 parent ede70a1 commit 3c37826

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ COPY front/package.json front/pnpm-lock.yaml ./front/
1717

1818
WORKDIR /app/admin
1919
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
20-
pnpm install --verbose
20+
pnpm install --frozen-lockfile --prefer-offline
2121

2222
WORKDIR /app/front
2323
RUN --mount=type=cache,target=/root/.local/share/pnpm/store \
24-
pnpm install --verbose
24+
pnpm install --frozen-lockfile --prefer-offline
2525

2626
WORKDIR /app
2727
COPY admin/ ./admin/

ui/front/src/app/forum/[forum_id]/ui/article.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const Article = ({
7070
: contextGroups
7171

7272
const [releaseModalVisible, { setTrue: releaseModalOpen, setFalse: releaseModalClose }] = useBoolean(false)
73-
const status = searchParams?.get('sort')
73+
const status = searchParams?.get('sort') || 'hot'
7474
const [search, setSearch] = useState(searchParams?.get('search') || '')
7575
const searchRef = useRef(search)
7676
const [articleData, setArticleData] = useState(data)
@@ -731,7 +731,7 @@ const Article = ({
731731
open={releaseModalVisible}
732732
onClose={releaseModalClose}
733733
onOk={() => {
734-
fetchList(status, search, topics)
734+
fetchList(status as Status, search, topics)
735735
router.refresh()
736736
releaseModalClose()
737737
}}

0 commit comments

Comments
 (0)