Skip to content

Commit a3cd285

Browse files
authored
fix(map): Ensure map centering callback executes correctly (#253)
1 parent b86fde8 commit a3cd285

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ function MapComponent({
466466
}
467467
};
468468
if (setCenterOnLocation) {
469-
setCenterOnLocation(() => centerOnLocationImpl);
469+
setCenterOnLocation(centerOnLocationImpl);
470470
}
471471
}, [setCenterOnLocation]);
472472

0 commit comments

Comments
 (0)