From 809714489139becd16ad1ebf75806d50054eae9e Mon Sep 17 00:00:00 2001 From: Viktor Rozaev Date: Thu, 6 Feb 2025 15:37:59 +0100 Subject: [PATCH] fix: now the attributes editor always using ordered merge, that prevents table rows from shuffle --- .../navigation/modals/attributes-editor.tsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/ui/src/ui/store/actions/navigation/modals/attributes-editor.tsx b/packages/ui/src/ui/store/actions/navigation/modals/attributes-editor.tsx index 1f74bde63..d7cc1bbf9 100644 --- a/packages/ui/src/ui/store/actions/navigation/modals/attributes-editor.tsx +++ b/packages/ui/src/ui/store/actions/navigation/modals/attributes-editor.tsx @@ -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, }; };