diff --git a/ui/analyse/src/explorer/explorerConfig.ts b/ui/analyse/src/explorer/explorerConfig.ts index 27c4b909bc..aa773aa943 100644 --- a/ui/analyse/src/explorer/explorerConfig.ts +++ b/ui/analyse/src/explorer/explorerConfig.ts @@ -246,7 +246,7 @@ const yearInput = (prop: StoredProp, after: () => Month, redraw: Redraw) input.setCustomValidity(''); if (input.checkValidity()) { validateRange(input); - prop(`${input.value}-${after() ? '12' : '01'}`); + prop(input.value ? `${input.value}-${after() ? '12' : '01'}` : ''); redraw(); } });