Skip to content

Commit

Permalink
Fix: changes are diffed against the first viewed or last changed entry
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Jun 13, 2024
1 parent 71f8013 commit 638b29c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/viewer/src/lib/Editor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@
}>();
export let entry: IEntry;
let initialEntry = JSON.parse(JSON.stringify(entry)) as IEntry;
$: initialEntry = JSON.parse(JSON.stringify(entry)) as IEntry;
function updateInitialEntry() {
initialEntry = JSON.parse(JSON.stringify(entry)) as IEntry;
}
const viewConfig = getContext<Readable<ViewConfig>>('viewConfig');
function withoutSenses(entry: IEntry): Omit<IEntry, 'senses'> {
Expand Down

0 comments on commit 638b29c

Please sign in to comment.