Skip to content

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Oct 8, 2024
1 parent cc7bd36 commit 094e5a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/src/components/stack/misc.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { StackCollection } from '../../generated/graphql'
import {
StackCollection,
StackCollectionFragment,
} from '../../generated/graphql'
import InstallAppButton from '../utils/InstallAppButton'
import { RecipeSubset } from '../utils/recipeHelpers'

Expand All @@ -9,7 +12,9 @@ export function StackActions({
recipes,
}: StackContext & { recipes?: RecipeSubset[] }) {
const filteredCollections = stack?.collections?.filter(
(sC: StackCollection | null | undefined): sC is StackCollection => !!sC
(
sC: StackCollectionFragment | null | undefined
): sC is StackCollectionFragment => !!sC
)

const apps = filteredCollections?.[0].bundles
Expand Down

0 comments on commit 094e5a6

Please sign in to comment.