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

@@ -3431,7 +3431,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
try {
return await loadImageAssetFromStorage(storage, asset);
} catch (error) {
if (await restoreDeletedStoredAsset(storage, asset)) {
if (storage !== null && (await restoreDeletedStoredAsset(storage, asset))) {
return loadImageAssetFromStorage(storage, asset);
}