reload after restoring a snapshot

This commit is contained in:
Kiril Videlov 2024-05-22 11:13:18 +02:00
parent eda9651bf9
commit d792d4fee9

View File

@ -126,6 +126,9 @@
isCurrent={idx == 0} isCurrent={idx == 0}
on:restoreClick={() => { on:restoreClick={() => {
historyService.restoreSnapshot(project.id, entry.id); historyService.restoreSnapshot(project.id, entry.id);
// In some cases, restoring the snapshot doesnt update the UI correctly
// Until we have that figured out, we need to reload the page.
location.reload();
}} }}
{selectedFile} {selectedFile}
on:diffClick={async (filePath) => { on:diffClick={async (filePath) => {