Skip to content

Commit bd09954

Browse files
committed
fix typescript errors
1 parent 4590044 commit bd09954

3 files changed

Lines changed: 19 additions & 3 deletions

File tree

src/pages/forms/[formsId]/edit.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ const FormEditPage = () => {
6060
formArchived={currentForm.archived}
6161
infoOnly={infoOnly}
6262
onAutoSave={autoSave}
63-
onVersionsUpdated={refetchGetForm}
63+
onVersionsUpdated={() => {
64+
void refetchGetForm()
65+
}}
6466
/>
6567
</Suspense>
6668
</main>

src/pages/forms/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ const AllFormsPage = () => {
117117
open={isModalOpen}
118118
onClose={closeModal}
119119
currentUser={currentUser!}
120-
onFormsUpdated={refetch}
120+
onFormsUpdated={() => {
121+
void refetch()
122+
}}
121123
/>
122124
{showNewFolder ? (
123125
<>
@@ -168,7 +170,9 @@ const AllFormsPage = () => {
168170
onGlobalFilterChange={handleGlobalFilterChange}
169171
onFolderFilterChange={handleFolderFilterChange}
170172
onColumnFiltersChange={handleColumnFiltersChange}
171-
onFormsUpdated={refetch}
173+
onFormsUpdated={() => {
174+
void refetch()
175+
}}
172176
/>
173177
</Card>
174178
</Suspense>

types/tanstack-table.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import "@tanstack/react-table"
2+
3+
declare module "@tanstack/react-table" {
4+
interface ColumnMeta<TData, TValue> {
5+
filterVariant?: "text" | "range" | "select" | "multiselect"
6+
filterPlaceholder?: string
7+
isHtml?: boolean
8+
selectOptions?: { label: string; value: string }[]
9+
}
10+
}

0 commit comments

Comments
 (0)