Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 776872c

Browse files
committed
async await typo
1 parent b4a4b39 commit 776872c

File tree

8 files changed

+21
-16
lines changed

8 files changed

+21
-16
lines changed

src/components/headerActions/handlers/types/CheckboxTypeHeaderAction.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@ function checkboxTypeComponent(headerActionResponse: HeaderActionResponse) {
3333
(state) => state.ddbbConfig
3434
);
3535

36-
const checkBoxTypeOnClick = (e: any) => {
36+
const checkBoxTypeOnClick = async () => {
3737
hooks.setShowType(false);
3838
hooks.setExpanded(false);
3939
dataActions.parseDataOfColumn(
4040
column.columnDef as TableColumn,
4141
InputType.CHECKBOX,
4242
ddbbConfig
4343
);
44-
columnActions.alterColumnType(
44+
45+
await columnActions.alterColumnType(
4546
column.columnDef as TableColumn,
4647
InputType.CHECKBOX
4748
);

src/components/headerActions/handlers/types/DateTypeHeaderAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function dateTypeComponent(headerActionResponse: HeaderActionResponse) {
3333
(state) => state.ddbbConfig
3434
);
3535

36-
const dateOnClick = () => {
36+
const dateOnClick = async () => {
3737
hooks.setShowType(false);
3838
hooks.setExpanded(false);
3939
dataActions.parseDataOfColumn(
@@ -42,7 +42,7 @@ function dateTypeComponent(headerActionResponse: HeaderActionResponse) {
4242
ddbbConfig
4343
);
4444

45-
columnActions.alterColumnType(
45+
await columnActions.alterColumnType(
4646
column.columnDef as TableColumn,
4747
InputType.CALENDAR
4848
);

src/components/headerActions/handlers/types/FormulaTypeHeaderAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function numberTypeComponent(headerActionResponse: HeaderActionResponse) {
3232
(state) => state.ddbbConfig
3333
);
3434

35-
const formulaOnClick = () => {
35+
const formulaOnClick = async () => {
3636
hooks.setShowType(false);
3737
hooks.setExpanded(false);
3838
dataActions.parseDataOfColumn(
@@ -41,7 +41,7 @@ function numberTypeComponent(headerActionResponse: HeaderActionResponse) {
4141
ddbbConfig
4242
);
4343

44-
columnActions.alterColumnType(
44+
await columnActions.alterColumnType(
4545
column.columnDef as TableColumn,
4646
InputType.FORMULA
4747
);

src/components/headerActions/handlers/types/NumberTypeHeaderAction.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ function numberTypeComponent(headerActionResponse: HeaderActionResponse) {
3232
(state) => state.ddbbConfig
3333
);
3434

35-
const numberOnClick = () => {
35+
const numberOnClick = async () => {
3636
hooks.setShowType(false);
3737
hooks.setExpanded(false);
3838
dataActions.parseDataOfColumn(
3939
column.columnDef as TableColumn,
4040
InputType.NUMBER,
4141
ddbbConfig
4242
);
43-
columnActions.alterColumnType(
43+
44+
await columnActions.alterColumnType(
4445
column.columnDef as TableColumn,
4546
InputType.NUMBER
4647
);
4748
};
49+
4850
return headerTypeComponent({
4951
onClick: numberOnClick,
5052
icon: <HashIcon />,

src/components/headerActions/handlers/types/RelationTypeHeaderAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function numberTypeComponent(headerActionResponse: HeaderActionResponse) {
3232
(state) => state.ddbbConfig
3333
);
3434

35-
const relationOnClick = () => {
35+
const relationOnClick = async () => {
3636
hooks.setShowType(false);
3737
hooks.setExpanded(false);
3838
dataActions.parseDataOfColumn(
@@ -41,7 +41,7 @@ function numberTypeComponent(headerActionResponse: HeaderActionResponse) {
4141
ddbbConfig
4242
);
4343

44-
columnActions.alterColumnType(
44+
await columnActions.alterColumnType(
4545
column.columnDef as TableColumn,
4646
InputType.RELATION
4747
);

src/components/headerActions/handlers/types/RollupTypeHeaderAction.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function rollupTypeComponent(headerActionResponse: HeaderActionResponse) {
3232
(state) => state.ddbbConfig
3333
);
3434

35-
const rollupOnClick = () => {
35+
const rollupOnClick = async () => {
3636
hooks.setShowType(false);
3737
hooks.setExpanded(false);
3838
dataActions.parseDataOfColumn(
@@ -41,7 +41,7 @@ function rollupTypeComponent(headerActionResponse: HeaderActionResponse) {
4141
ddbbConfig
4242
);
4343

44-
columnActions.alterColumnType(
44+
await columnActions.alterColumnType(
4545
column.columnDef as TableColumn,
4646
InputType.ROLLUP
4747
);

src/components/headerActions/handlers/types/TagsTypeHeaderAction.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,16 @@ function tagsTypeComponent(headerActionResponse: HeaderActionResponse) {
3434
(state) => state.ddbbConfig
3535
);
3636

37-
const tagsOnClick = () => {
37+
const tagsOnClick = async () => {
3838
hooks.setShowType(false);
3939
hooks.setExpanded(false);
4040
dataActions.parseDataOfColumn(
4141
column.columnDef as TableColumn,
4242
InputType.TAGS,
4343
ddbbConfig
4444
);
45-
columnActions.alterColumnType(
45+
46+
await columnActions.alterColumnType(
4647
column.columnDef as TableColumn,
4748
InputType.TAGS,
4849
rows

src/components/headerActions/handlers/types/TextTypeHeaderAction.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ function textTypeComponent(headerActionResponse: HeaderActionResponse) {
3232
const ddbbConfig = table.options.meta.tableState.configState(
3333
(state) => state.ddbbConfig
3434
);
35-
const tagsOnClick = () => {
35+
const tagsOnClick = async () => {
3636
hooks.setShowType(false);
3737
hooks.setExpanded(false);
3838
dataActions.parseDataOfColumn(
3939
column.columnDef as TableColumn,
4040
InputType.TEXT,
4141
ddbbConfig
4242
);
43-
columnActions.alterColumnType(
43+
44+
await columnActions.alterColumnType(
4445
column.columnDef as TableColumn,
4546
InputType.TEXT
4647
);

0 commit comments

Comments
 (0)