Skip to content

Commit 42ae08e

Browse files
committed
[inspector] Fix sorted Ids rerendering bug
1 parent e593a0b commit 42ae08e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-react-inspector/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const getUniqueId = (...args: (Id | undefined)[]) =>
2323
export const sortedIdsMap = <Return>(
2424
ids: Ids,
2525
callback: (id: Id) => Return,
26-
): Return[] => arrayMap(arraySort(ids), callback);
26+
): Return[] => arrayMap(arraySort([...ids]), callback);
2727

2828
export const useEditable = (
2929
uniqueId: Id,

0 commit comments

Comments
 (0)