@panoramax/web-viewer 3.2.3-develop-33cd154c → 3.2.3-develop-f339ab99
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.
- package/CHANGELOG.md +1 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/MapFilters.js +9 -0
package/package.json
CHANGED
|
@@ -204,6 +204,15 @@ export default class MapFilters extends LitElement {
|
|
|
204
204
|
_onParentFilterChange(e) {
|
|
205
205
|
this.minDate = e?.minDate || null;
|
|
206
206
|
this.maxDate = e?.maxDate || null;
|
|
207
|
+
|
|
208
|
+
// Sanity check for date
|
|
209
|
+
if(this.minDate && this.maxDate && this.minDate > this.maxDate) {
|
|
210
|
+
const prevMin = this.minDate;
|
|
211
|
+
this.minDate = this.maxDate;
|
|
212
|
+
this.maxDate = prevMin;
|
|
213
|
+
this._onFormChange();
|
|
214
|
+
}
|
|
215
|
+
|
|
207
216
|
this.score = e?.qualityscore?.length < 5 ? e.qualityscore.join(",") : "";
|
|
208
217
|
|
|
209
218
|
if(e?.pic_type && e.pic_type != "") {
|