File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
apps/desktop/src/components Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 224
224
}
225
225
});
226
226
227
+ // Clear exclusive action if branch cannot be found.
228
+ // TODO: We must be able to express this better..
229
+ $effect (() => {
230
+ const exclusiveAction = projectState .exclusiveAction .current ;
231
+ if (exclusiveAction && branchesResult .current .data ) {
232
+ setTimeout (() => {
233
+ if (exclusiveAction && branchesResult .current .data ) {
234
+ if (' branchName' in exclusiveAction ) {
235
+ const branchName = exclusiveAction .branchName ;
236
+ if (branchName && ! branchesResult .current .data .some ((b ) => b .name === branchName )) {
237
+ projectState .exclusiveAction .set (undefined );
238
+ console .warn (' Exclusive action cleared' );
239
+ }
240
+ }
241
+ }
242
+ }, 500 );
243
+ }
244
+ });
245
+
227
246
const startCommitVisible = $derived (uncommittedService .startCommitVisible (stack .id ));
228
247
229
248
function onerror(err : unknown ) {
You can’t perform that action at this time.
0 commit comments