From 86ee32448ac68cb54a467469cbf5c4e90cda6480 Mon Sep 17 00:00:00 2001 From: Elvin D Date: Tue, 26 Mar 2019 13:29:24 -0600 Subject: [PATCH] fix(docz-core): entries not initialized on build --- 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))