Skip to content

Commit 1acef94

Browse files
committed
fix: type error
1 parent 2a15e89 commit 1acef94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/frontend/src/app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ export default function Home() {
268268
}, [search]);
269269

270270
// Table column specification
271-
var columns
271+
var columns: TableProps<Question>["columns"]
272272
if (isAdmin) {
273-
var columns: TableProps<Question>["columns"] = [
273+
columns = [
274274
{
275275
title: "Id",
276276
dataIndex: "id",
@@ -437,7 +437,7 @@ export default function Home() {
437437
},
438438
];
439439
} else {
440-
var columns: TableProps<Question>["columns"] = [
440+
columns = [
441441
{
442442
title: "Id",
443443
dataIndex: "id",

0 commit comments

Comments
 (0)