Commit 0560135
committed
Fix svelte related bug where UI can freeze
The reactive `commitId` variable updates inside the if statement before
the {if} block, which causes errors on component unmounting. This showed
in the real world when flipping back and forth between commit view and
branch view.1 parent 832230b commit 0560135
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
606 | 609 | | |
607 | 610 | | |
608 | 611 | | |
609 | | - | |
610 | 612 | | |
611 | 613 | | |
612 | 614 | | |
| |||
0 commit comments