Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ui/chen/components/DataGrid.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ const rowData = computed(() => {
const dirtyVersion = props.editState?.dirtyVersion;
void dirtyVersion;
if (!props.dataset) return [];
if (props.editMode === "none" || !props.editState) return props.dataset.data;
return chenDataViewRows(props.dataset, props.editState);
});

Expand Down
3 changes: 2 additions & 1 deletion ui/chen/utils/dataViewEditing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ export function isChenDirtyCell(
return Boolean(state.dirtyCells[dirtyKey(identity.key, field.sourceColumn)]);
}

export function chenDataViewRows(dataset: ChenDataViewDataset, state: ChenDataViewEditState) {
export function chenDataViewRows(dataset: ChenDataViewDataset, state: ChenDataViewEditState | null | undefined) {
if (!state) return dataset.data;
const rows = dataset.data.map((source) => {
const row = { ...source };
for (const field of dataset.fields) {
Expand Down
Loading