You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create a modal which is used to confirm something, then the page will be redirected to route "/". When the button from the modal is clicked, the redirection process is successful but get an error. How to solve this error?
Modal dialog dismissed!
Exception in thread Thread-25 (__sync_handler):
Traceback (most recent call last):
File "C:\Users\refandas\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
self.run()
File "C:\Users\refandas\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
self._target(*self._args, **self._kwargs)
File "D:\Development\Python\env-webdev\lib\site-packages\flet_core\event_handler.py", line 28, in __sync_handler
h(r)
File "D:\Development\Python\flet-docs\routing\main.py", line 52, in view_pop
top_view = page.views[-1]
IndexError: list index out of range
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Question
I want to create a modal which is used to confirm something, then the page will be redirected to route "/". When the button from the modal is clicked, the redirection process is successful but get an error. How to solve this error?
Code sample
Error message
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions