Commit e8d9e61
Fix React hooks ordering error after blueprint submission
Moved useMemo calls for `summary` and `voxels` above the early `if (success) return` in SubmitForm. Placing hooks after a conditional return violated the Rules of Hooks (React error #300), causing a blank page after a successful PR submission.
Also filters BentoBox itself out of the ChipPicker in PresetEditor so it no longer appears as a selectable addon.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1baf7d9 commit e8d9e61
2 files changed
Lines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
766 | 778 | | |
767 | 779 | | |
768 | 780 | | |
| |||
781 | 793 | | |
782 | 794 | | |
783 | 795 | | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments