From f07a6d4b0d10d5b90fa9dcfc45a89a6622d021fc Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 28 Mar 2019 19:27:41 +0000 Subject: [PATCH] --- ayanova/src/components/gzdateandtimepicker.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ayanova/src/components/gzdateandtimepicker.vue b/ayanova/src/components/gzdateandtimepicker.vue index b88aeec1..455283b0 100644 --- a/ayanova/src/components/gzdateandtimepicker.vue +++ b/ayanova/src/components/gzdateandtimepicker.vue @@ -56,11 +56,13 @@ export default { beforeCreate() { //check pre-requisites exist just in case - if (!this.$dayjs) { - throw "GzDateAndTimePicker: the DayJS library is required and missing"; - } - if (!this.$gzlocale) { - throw "GzDateAndTimePicker: $gzlocale is required and missing"; + if (this.$gzdevmode()) { + if (!this.$dayjs) { + throw "GzDateAndTimePicker: the DayJS library is required and missing"; + } + if (!this.$gzlocale) { + throw "GzDateAndTimePicker: $gzlocale is required and missing"; + } } }, data: () => ({ date: null, dlgdate: false, dlgtime: false }),