diff --git a/src/components/modals/SortModal.svelte b/src/components/modals/SortModal.svelte index 1c08fc9..b0bc955 100644 --- a/src/components/modals/SortModal.svelte +++ b/src/components/modals/SortModal.svelte @@ -92,19 +92,17 @@ import { compileJSONPointer } from '../../utils/jsonPointer'; - {#if rootPath.length > 0} - - Path - - - - - {/if} + + Path + + 0 ? stringifyPath(rootPath) : '(whole document)'} + /> + + {#if jsonIsArray && (properties.length > 1 || selectedProperty === undefined) } Property diff --git a/src/components/treemode/TreeMode.svelte b/src/components/treemode/TreeMode.svelte index 5397a6a..899dc7b 100644 --- a/src/components/treemode/TreeMode.svelte +++ b/src/components/treemode/TreeMode.svelte @@ -276,12 +276,7 @@ rootPath, onSort: async (operations) => { console.log('onSort', rootPath, operations) - patch(operations, selection) - - await tick() - - handleExpand(rootPath, true, false) } }, { ...SIMPLE_MODAL_OPTIONS,