Skip to content

Commit

Permalink
chore: minor change to js casting
Browse files Browse the repository at this point in the history
  • Loading branch information
jokerttu committed Apr 29, 2024
1 parent cbb5eee commit 800a08e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extension type MarkerClustererOptions._(JSObject _) implements JSObject {
}) =>
MarkerClustererOptions._js(
map: map as JSAny?,
markers: markers?.cast<JSAny>().toJS ?? <JSAny>[].toJS,
markers: markers?.cast<JSAny>().toJS ?? JSArray<JSAny>(),
onClusterClick: onClusterClick != null
? ((JSAny event, MarkerClustererCluster cluster, JSAny map) =>
onClusterClick(event as gmaps.MapMouseEvent, cluster,
Expand Down

0 comments on commit 800a08e

Please sign in to comment.