diff --git a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte index 40a1c53211..ec8a81bc1c 100644 --- a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte +++ b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte @@ -362,7 +362,7 @@ {#if departmentStaff.length} {#if loading} - {:else if viewlet} + {:else}
@@ -370,15 +370,17 @@
- {#await createConfig(viewlet, preference, month) then config} - it._id) } }} - {config} - options={viewlet.options} - /> - {/await} + {#if viewlet} + {#await createConfig(viewlet, preference, month) then config} + it._id) } }} + {config} + options={viewlet.options} + /> + {/await} + {/if} {/if} {:else}