Skip to content

Commit 4b0929f

Browse files
authored
Merge pull request #8858 from gitbutlerapp/some-teeny-weeny-fixes
some-teeny-weeny-fixes
2 parents 0743e7f + 7adb9ea commit 4b0929f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/desktop/src/components/v3/BranchHeaderContextMenu.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@
268268
/>
269269
</ContextMenuSection>
270270
{/snippet}
271+
<!-- For now, just swallow this error -->
272+
{#snippet error()}{/snippet}
271273
</ReduxResult>
272274
{/if}
273275

apps/desktop/src/lib/forge/prContents.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ export class PrPersistedStore {
3636
}
3737

3838
dispatchCurrent() {
39-
this.dispatch(this.persisted !== '' ? this.persisted : this._default);
39+
this.dispatch(!isEmptyOrUndefined(this.persisted) ? this.persisted : this._default);
4040
}
4141

4242
dispatch(value: string) {
43-
const dispatchValue = isEmptyOrUndefined(value) ? this._default : value;
4443
for (const subscriber of this.subscribers) {
45-
subscriber(dispatchValue);
44+
subscriber(value);
4645
}
4746
}
4847

0 commit comments

Comments
 (0)