This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +21
-16
lines changed
src/components/headerActions/handlers/types Expand file tree Collapse file tree 8 files changed +21
-16
lines changed Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 /> ,
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments