From f475a53f7a870fb914cbb0c45d776b368425c86a Mon Sep 17 00:00:00 2001 From: castynet Date: Mon, 18 Apr 2022 15:25:44 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Cannot=20read=20property=20=E2=80=98exte?= =?UTF-8?q?nd=E2=80=99=20of=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/lib/date-utils.js | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/components/lib/date-utils.js b/src/components/lib/date-utils.js index de41297..37debf0 100644 --- a/src/components/lib/date-utils.js +++ b/src/components/lib/date-utils.js @@ -1,14 +1,12 @@ -import dayjs from 'dayjs' -import localeData from 'dayjs/plugin/localeData' -import minMax from 'dayjs/plugin/minMax' -import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' -import isSameOrAfter from 'dayjs/plugin/isSameOrAfter' +import dayjs from 'dayjs'; +import localeData from 'dayjs/plugin/localeData'; +import minMax from 'dayjs/plugin/minMax'; +import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; +import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; -dayjs.extend(localeData) -dayjs.extend(minMax) -dayjs.extend(isSameOrBefore) -dayjs.extend(isSameOrAfter) +dayjs?.extend(localeData); +dayjs?.extend(minMax); +dayjs?.extend(isSameOrBefore); +dayjs?.extend(isSameOrAfter); -export { - dayjs -} +export { dayjs };