Commit 4133dd1
authored
fix: party creation page crash from eager JS reload
make-empty-party had :on-success (.reload js/window.location true)
which evaluated eagerly during map construction, reloading the page
before the POST even completed. Replaced with a proper dispatch
vector to a new make-empty-party-success handler that appends the
new party to app-db reactively, matching the existing make-party
pattern.1 parent 22e48cc commit 4133dd1
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
756 | 756 | | |
757 | 757 | | |
758 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
759 | 768 | | |
760 | 769 | | |
761 | 770 | | |
| |||
764 | 773 | | |
765 | 774 | | |
766 | 775 | | |
767 | | - | |
768 | | - | |
| 776 | + | |
769 | 777 | | |
770 | 778 | | |
771 | 779 | | |
| |||
0 commit comments