mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Fix bounds check, bounds are different is one of the argument is undefined
This commit is contained in:
parent
8ce2e536e8
commit
19cfe6dd53
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ export const sdkBoundsToFixedCoordinates = (sdkBounds, fixedPrecision) => {
|
|||
* @return {boolean} - true if bounds are the same
|
||||
*/
|
||||
export const hasSameSDKBounds = (sdkBounds1, sdkBounds2) => {
|
||||
if (!(sdkBounds1 instanceof SDKLatLngBounds) && !(sdkBounds2 instanceof SDKLatLngBounds)) {
|
||||
if (!(sdkBounds1 instanceof SDKLatLngBounds) || !(sdkBounds2 instanceof SDKLatLngBounds)) {
|
||||
return false;
|
||||
}
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue