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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user