Skip to content

Commit

Permalink
fix: now the attributes editor always using ordered merge, that preve…
Browse files Browse the repository at this point in the history
…nts table rows from shuffle
  • Loading branch information
vrozaev committed Feb 7, 2025
1 parent df445ed commit 8097144
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,16 +191,13 @@ export function navigationSetNodeAttributes(
}

const prepareMergeParams = (path: string) => {
const sorted = ypath.getValue(attributesMap[path], '/@sorted');
return {
spec: Object.assign(
{
input_table_paths: [path],
output_table_path: path,
force_transform: true,
},
sorted ? {mode: 'sorted'} : {},
),
spec: Object.assign({
input_table_paths: [path],
output_table_path: path,
force_transform: true,
mode: 'ordered',
}),
...EDIT_MERGE_MARKER,
};
};
Expand Down

0 comments on commit 8097144

Please sign in to comment.