Skip to content

Commit 76d3269

Browse files
committed
When existing page is found, return it
1 parent 0c48260 commit 76d3269

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/apps/IntelligentNpcsBrowser.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export default class IntelligentNpcsBrowser extends Application {
178178

179179
// If the Page for the record doesn't exist, create it
180180
let page = journal.pages.getName(npc.fields.name);
181-
if ( page && !force ) return;
181+
if ( page && !force ) return { journal: journal, page: page };
182182
else if ( !page ) {
183183
const created = await journal.createEmbeddedDocuments("JournalEntryPage", [{
184184
name: npc.fields.name,

0 commit comments

Comments
 (0)