Skip to content

Commit 8c48c30

Browse files
authored
Merge pull request #9718 from gitbutlerapp/fix-action-response-handling
fix-action-response-handling
2 parents cb71857 + b3b3863 commit 8c48c30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/desktop/src/components/FeedItem.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<span class="text-grey">Prompt:</span>{' ' +
105105
(action.externalPrompt ?? action.externalSummary)}
106106
</p>
107-
{#if !isStringActionSource(action.source) && action.response !== undefined}
107+
{#if !isStringActionSource(action.source) && !!action.response}
108108
{@const newCommits = allCommitsUpdated(action.response)}
109109
<FeedActionDiff {projectId} {newCommits} />
110110
{/if}

apps/desktop/src/lib/actions/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export class ButlerAction {
7777
/** A GitBulter Oplog snapshot ID after the action was performed. */
7878
snapshotAfter!: string;
7979
/** The outcome of the action, if it was successful. */
80-
response?: Outcome;
80+
response!: Outcome | null;
8181
/** An error message if the action failed. */
82-
error?: string;
82+
error!: string | null;
8383
/** The source of the action, if known. */
8484
source!: ActionSource;
8585
}

0 commit comments

Comments
 (0)