From 774d9a6df0304fff9187dfca53390c867e047e91 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 19 Oct 2020 13:05:36 +0200 Subject: [PATCH] Fix bug in Metatagging --- Logic/MetaTagging.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Logic/MetaTagging.ts b/Logic/MetaTagging.ts index a61fc72..4de819b 100644 --- a/Logic/MetaTagging.ts +++ b/Logic/MetaTagging.ts @@ -100,10 +100,12 @@ export default class MetaTagging { tags["_isOpen:description"] = comment; } const nextChange = oh.getNextChange() as Date; - window.setTimeout( - updateTags, - (nextChange.getTime() - (new Date()).getTime()) - ) + if (nextChange !== undefined) { + window.setTimeout( + updateTags, + (nextChange.getTime() - (new Date()).getTime()) + ) + } } updateTags(); }