fix : update
This commit is contained in:
@@ -223,7 +223,7 @@ export function ExtraSheetEditor({
|
||||
type="color"
|
||||
aria-label="เลือกสีพื้นหลังเซลล์"
|
||||
className="absolute inset-0 cursor-pointer opacity-0"
|
||||
value={activeRow?.backgrounds[activeColumn?.id ?? ""] ?? DEFAULT_CELL_BACKGROUND}
|
||||
value={activeRow?.backgrounds?.[activeColumn?.id ?? ""] ?? DEFAULT_CELL_BACKGROUND}
|
||||
onChange={(event) => onChange(updateExtraSheetCells(value, selectedPoints(), {
|
||||
backgroundColor: event.target.value,
|
||||
}))}
|
||||
|
||||
@@ -1288,7 +1288,7 @@ function ExtraSectionContent({
|
||||
<TableCell
|
||||
key={column.id}
|
||||
className="border-l first:border-l-0 whitespace-normal"
|
||||
style={sheetRow.backgrounds[column.id]
|
||||
style={sheetRow.backgrounds?.[column.id]
|
||||
? { backgroundColor: sheetRow.backgrounds[column.id] }
|
||||
: undefined}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user