Skip to content

Commit

Permalink
Change types for getSnapshot and resolveSnapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
FyreByrd committed Sep 25, 2024
1 parent b634484 commit 9c49c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/SIL.AppBuilder.Portal/common/workflow/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ export async function getSnapshot(productId: string) {
}
})
)?.Snapshot || 'null'
) as Snapshot | undefined;
) as Snapshot | null;
}

export function resolveSnapshot(machine: WorkflowMachine, snap?: Snapshot) {
return snap !== undefined ? machine.resolveState(snap) : undefined;
export function resolveSnapshot(machine: WorkflowMachine, snap: Snapshot | null) {
return snap ? machine.resolveState(snap) : undefined;
}

/**
Expand Down

0 comments on commit 9c49c9d

Please sign in to comment.