adminforth 3.3.0-next.1 → 3.3.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -208,6 +208,10 @@ async function initDatepickers() {
|
|
|
208
208
|
'flowbite-datepicker/Datepicker'
|
|
209
209
|
);
|
|
210
210
|
|
|
211
|
+
if (!datepickerStartEl.value || !datepickerEndEl.value) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
211
215
|
const LS_LANG_KEY = `afLanguage`;
|
|
212
216
|
datepickerStartObject.value = new Datepicker(datepickerStartEl.value, {format: 'dd M yyyy', language: localStorage.getItem(LS_LANG_KEY)});
|
|
213
217
|
datepickerEndObject.value = new Datepicker(datepickerEndEl.value, {format: 'dd M yyyy', language: localStorage.getItem(LS_LANG_KEY)});
|