fix(*): Web 构建 - 修复短剧项目空间合并后的 TypeScript 类型错误
This commit is contained in:
1 parent
d305a837b8
commit
38ae16cbb5
15 files changed
+63
-55
No files matched your search
@@ -106,7 +106,8 @@ function sameAssetResource(asset: Asset, node: CanvasNodeData) {
|
||||
}
|
||||
|
||||
function assetStorageKey(asset: Asset) {
|
||||
return asset.kind === "text" ? undefined : asset.data.storageKey;
|
||||
if (asset.kind === "text" || asset.kind === "entity") return undefined;
|
||||
return asset.data.storageKey;
|
||||
}
|
||||
|
||||
export function declaredCanvasNodeAssetCategory(node: CanvasNodeData): AssetCategory | undefined {
|
||||
|
||||
Reference in new issue
Block a user