From 3e99db0cdf63a27d434ecf2ba291a7826c7a4c2a Mon Sep 17 00:00:00 2001 From: Elvin Dzhavadov Date: Tue, 26 Mar 2019 15:09:41 -0600 Subject: [PATCH] fix(docz-core): entries not initialized on build (#725) --- core/docz-core/src/states/entries.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/core/docz-core/src/states/entries.ts b/core/docz-core/src/states/entries.ts index 5720d7756..7b9c7463a 100644 --- a/core/docz-core/src/states/entries.ts +++ b/core/docz-core/src/states/entries.ts @@ -38,6 +38,7 @@ export const state = (entries: Entries, config: Config): State => { start: async params => { const update = updateEntries(entries) + update(params); watcher.on('add', async () => update(params)) watcher.on('change', async () => update(params)) watcher.on('unlink', async () => update(params))