fix the changes are cleared after changing date range under "New Explorer"

This commit is contained in:
MaysWind
2026-01-16 23:55:50 +08:00
parent 0f532094ca
commit 4b72bfd76d
+1 -1
View File
@@ -399,7 +399,7 @@ function init(initProps: InsightsExplorerProps): void {
if (explorersStore.currentInsightsExplorer.id !== initProps.initId) {
needReload = true;
}
} else {
} else if (!initProps.initId && !initProps.initActiveTab && !initProps.initDateRangeType && !initProps.initStartTime && !initProps.initEndTime) { // first time open the page
explorersStore.updateCurrentInsightsExplorer(InsightsExplorer.createNewExplorer(generateRandomUUID()));
isCurrentExplorerModified.value = true;
}