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(); }