ソースを参照

table refresh (#1055)

resolves #1054

Co-authored-by: Fred Lefévère-Laoide <Fred.Lefevere-Laoide@Taipy.io>
Fred Lefévère-Laoide 1 年間 前
コミット
4c00ccc28d
1 ファイル変更4 行追加4 行削除
  1. 4 4
      frontend/taipy-gui/src/components/Taipy/tableUtils.tsx

+ 4 - 4
frontend/taipy-gui/src/components/Taipy/tableUtils.tsx

@@ -593,16 +593,16 @@ export const EditableCell = (props: EditableCellProps) => {
                         <Button size="small" onClick={onSelect} sx={ButtonSx}>
                             {formatValue(button[0] as RowValue, colDesc, formatConfig, nanValue)}
                         </Button>
-                    ) : val !== null && val !== undefined && colDesc.type && colDesc.type.startsWith("bool") ? (
+                    ) : value !== null && value !== undefined && colDesc.type && colDesc.type.startsWith("bool") ? (
                         <Switch
-                            checked={val as boolean}
+                            checked={value as boolean}
                             size="small"
-                            title={val ? "True" : "False"}
+                            title={value ? "True" : "False"}
                             sx={defaultCursorIcon}
                         />
                     ) : (
                         <span style={defaultCursor}>
-                            {formatValue(val as RowValue, colDesc, formatConfig, nanValue)}
+                            {formatValue(value as RowValue, colDesc, formatConfig, nanValue)}
                         </span>
                     )}
                     {onValidation && !button ? (