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 42046c6 commit 7f0d10c
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 7f0d10c

Please sign in to comment.