Skip to content

Commit

Permalink
fix ts lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Dec 3, 2019
1 parent 236a2bb commit 307b605
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const SnapshotTable: React.FunctionComponent<Props> = ({
<SnapshotDeleteProvider>
{deleteSnapshotPrompt => {
const isDeleteDisabled = Boolean(lastSuccessfulManagedSnapshot)
? snapshot === lastSuccessfulManagedSnapshot.snapshot
? snapshot === lastSuccessfulManagedSnapshot!.snapshot
: false;
const label = isDeleteDisabled
? i18n.translate(
Expand Down Expand Up @@ -287,7 +287,7 @@ export const SnapshotTable: React.FunctionComponent<Props> = ({
onSelectionChange: (newSelectedItems: SnapshotDetails[]) => setSelectedItems(newSelectedItems),
selectable: ({ snapshot }: SnapshotDetails) =>
Boolean(lastSuccessfulManagedSnapshot)
? snapshot !== lastSuccessfulManagedSnapshot.snapshot
? snapshot !== lastSuccessfulManagedSnapshot!.snapshot
: true,
selectableMessage: (selectable: boolean) => {
if (!selectable) {
Expand Down

0 comments on commit 307b605

Please sign in to comment.