ATLAS-4404: #1 UI: Left side Panel doesn't toggled to Advanced Search after Switching from New-UI to Old-UI, fixed
Signed-off-by: Pinal Shah <pinal.shah@freestoneinfotech.com>
diff --git a/dashboardv2/public/js/views/search/SearchLayoutView.js b/dashboardv2/public/js/views/search/SearchLayoutView.js
index be46d7e..408f1fe 100644
--- a/dashboardv2/public/js/views/search/SearchLayoutView.js
+++ b/dashboardv2/public/js/views/search/SearchLayoutView.js
@@ -685,7 +685,7 @@
}
if (this.value) {
this.ui.searchInput.val(this.value.query || "");
- if (this.value.dslChecked == "true") {
+ if (this.value.dslChecked == "true" || this.value.searchType === "dsl") {
if (!this.ui.searchType.prop("checked")) {
this.ui.searchType.prop("checked", true).trigger("change");
}