Fix asset context asset undefined
This commit is contained in:
@@ -175,7 +175,7 @@ export function AssetURLsProvider({ children }) {
|
||||
setAssetURLs((prevURLs) => {
|
||||
let newURLs = { ...prevURLs };
|
||||
for (let asset of assets) {
|
||||
if (newURLs[asset.id].url === null) {
|
||||
if (newURLs[asset.id]?.url === null) {
|
||||
newURLs[asset.id] = {
|
||||
...newURLs[asset.id],
|
||||
url: URL.createObjectURL(
|
||||
|
||||
Reference in New Issue
Block a user