Skip to content

Commit

Permalink
put back individual_alert_frame_storage init
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Nov 3, 2023
1 parent cb15cbf commit fe516ac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/utils/alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,16 @@ def build_alerts_elements(images_url_live_alerts, live_alerts, map_style):
style={"position": "absolute", "top": "10px", "right": "30px", "z-index": "1000"},
)

individual_alert_frame_placeholder_children = []
for event_id, frame_url_list in images_url_live_alerts.items():
individual_alert_frame_placeholder_children.append(
html.Div(
id={"type": "individual_alert_frame_storage", "index": str(event_id)},
children=frame_url_list,
style={"display": "none"},
)
)

return [alert_button, alerts_markers_layer, navbar_color, navbar_title]


Expand Down

0 comments on commit fe516ac

Please sign in to comment.