This commit is contained in:
Nathan Bierema 2023-03-26 20:46:58 -04:00
parent a543142656
commit a6462e5f21

View File

@ -44,7 +44,7 @@ export function compare<S>(
path += '.length';
} else if (event.type === 'add-item') {
generate({ type: 'move-item', newPath: event.newPath });
path += `[${event.newIndex}]`;
path += `[${event.newIndex!}]`;
curState = stringify(event.newValue);
} else {
curState = stringify(event.newValue);