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

Commit 4adc964

Browse files
committed
avances con persisitgir selects
1 parent 433daeb commit 4adc964

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/components/Columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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`);

src/components/portals/CalendarPortal.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ import { c } from "helpers/StylesHelper";
1111
const 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);

src/components/portals/PopperSelectPortal.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

src/parsers/handlers/unmarshall/UnmarshallColumnsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)