mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
fix jotai debug values & reset atomWithHash
This commit is contained in:
@@ -274,16 +274,21 @@ export default function Table({
|
||||
value,
|
||||
});
|
||||
}}
|
||||
onSelectedCellChange={({ rowIdx, idx }) =>
|
||||
setSelectedCell({
|
||||
path: rows[rowIdx]._rowy_ref.path,
|
||||
columnKey: tableColumnsOrdered.filter((col) =>
|
||||
userDocHiddenFields
|
||||
? !userDocHiddenFields.includes(col.key)
|
||||
: true
|
||||
)[idx].key,
|
||||
})
|
||||
}
|
||||
onSelectedCellChange={({ rowIdx, idx }) => {
|
||||
if (!rows[rowIdx]?._rowy_ref) return; // May be the header row
|
||||
|
||||
const path = rows[rowIdx]._rowy_ref.path;
|
||||
if (!path) return;
|
||||
|
||||
const columnKey = tableColumnsOrdered.filter((col) =>
|
||||
userDocHiddenFields
|
||||
? !userDocHiddenFields.includes(col.key)
|
||||
: true
|
||||
)[idx]?.key;
|
||||
if (!columnKey) return; // May be the final column
|
||||
|
||||
setSelectedCell({ path, columnKey });
|
||||
}}
|
||||
/>
|
||||
</DndProvider>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user