Fix null check for storage in App.tsx and update type checks in starter-environment-assets.ts; add null check for storage in project-package.ts

This commit is contained in:
2026-04-15 04:27:32 +02:00
parent 3f5c2036a5
commit 2a9b6f661c
3 changed files with 10 additions and 3 deletions

View File

@@ -174,7 +174,7 @@ export function createStarterEnvironmentAssetRegistry(): Record<
export function isStarterEnvironmentImageAsset(
asset: ProjectAssetRecord | ImageAssetRecord
): asset is ImageAssetRecord {
): boolean {
return (
asset.kind === "image" &&
asset.storageKey.startsWith(STARTER_ENVIRONMENT_STORAGE_KEY_PREFIX)