Skip to content

Commit

Permalink
fix: correctly update entity count in KankaBrowser when deleting folders
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Weingärtner authored and eXaminator committed May 4, 2024
1 parent ee221eb commit 28cd4ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/foundry/registerHooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import ready from './hooks/ready';
const refreshInit = hmrWrapHook('init', () => init, 'once');
const refreshReady = hmrWrapHook('ready', () => ready, 'once');
const refreshRenderJournalDirectory = hmrWrapHook('renderJournalDirectory', () => renderJournalDirectory, 'on');
const refreshDeleteJournalSheet = hmrWrapHook('deleteJournalEntry', () => deleteJournalEntry, 'on');
const refreshDeleteJournalEntry = hmrWrapHook('deleteJournalEntry', () => deleteJournalEntry, 'on');
const refreshDeleteFolder = hmrWrapHook('deleteJournalEntry', () => deleteJournalEntry, 'on');

if (import.meta.hot) {
import.meta.hot.accept('./hooks/init', refreshInit);
import.meta.hot.accept('./hooks/ready', refreshReady);
import.meta.hot.accept('./hooks/renderJournalDirectory', refreshRenderJournalDirectory);
import.meta.hot.accept('./hooks/deleteJournalEntry', refreshDeleteJournalSheet);
import.meta.hot.accept('./hooks/deleteJournalEntry', refreshDeleteJournalEntry);
import.meta.hot.accept('./hooks/deleteJournalEntry', refreshDeleteFolder);
}

0 comments on commit 28cd4ac

Please sign in to comment.