This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
parsers/handlers/unmarshall Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ function columnOptions(
7474 column : DatabaseColumn
7575) : TableColumn {
7676 LOGGER . debug ( `=> columnOptions. column: ${ JSON . stringify ( column ) } ` ) ;
77- const options : RowSelectOption [ ] = [ ] ;
77+ const options : RowSelectOption [ ] = column . options ?? [ ] ;
7878
7979 if ( Object . values ( DataTypes ) . includes ( column . input ) ) {
8080 LOGGER . debug ( `<= columnOptions` , `return ${ column . input } column` ) ;
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ import { c } from "helpers/StylesHelper";
1111const CalendarPortal = ( calendarProps : CalendarProps ) => {
1212 const { column, cellProperties } = calendarProps ;
1313 const dataDispatch = ( cellProperties as any ) . dataDispatch ;
14- // Selector reference state
15-
16- // Selector popper state
1714 /** state of cell value */
1815 const { contextValue, setContextValue } = useContext ( CellContext ) ;
1916 const [ showDatePicker , setShowDatePicker ] = useState ( false ) ;
Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ const PopperSelectPortal = (popperProps: PopperProps) => {
2929 setShowAdd ( true ) ;
3030 }
3131
32- function handleOptionClick ( option : { label : string ; backgroundColor ?: any } ) {
32+ function handleOptionClick ( option : {
33+ label : string ;
34+ backgroundColor ?: string ;
35+ } ) {
3336 setContextValue ( { value : option . label , update : true } ) ;
3437 setShowSelect ( false ) ;
3538 // save on disk & move file if its configured on the column
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ function unmarshallParticularInputInfo(column: DatabaseColumn): string[] {
4747 particularInputString . push ( `${ YAML_INDENT . repeat ( 2 ) } options:` ) ;
4848 column . options . forEach ( option => {
4949 particularInputString . push ( `${ YAML_INDENT . repeat ( 3 ) } - {label: ${ option . label } , backgroundColor: ${ option
50- . backgroundColor } `) ;
50+ . backgroundColor . toString ( ) } }`) ;
5151 } ) ;
5252 }
5353 }
You can’t perform that action at this time.
0 commit comments