[Maps] Ensure the query-object is populated (#49917)
This commit is contained in:
parent
e38501500e
commit
90ddbfd9d4
|
@ -7,6 +7,9 @@
|
|||
// Refresh only query is query where timestamps are different but query is the same.
|
||||
// Triggered by clicking "Refresh" button in QueryBar
|
||||
export function isRefreshOnlyQuery(prevQuery, newQuery) {
|
||||
if (!prevQuery || !newQuery) {
|
||||
return false;
|
||||
}
|
||||
return prevQuery.queryLastTriggeredAt !== newQuery.queryLastTriggeredAt
|
||||
&& prevQuery.language === newQuery.language
|
||||
&& prevQuery.query === newQuery.query;
|
||||
|
|
Loading…
Reference in a new issue