fix(*): Web 构建 - 修复短剧项目空间合并后的 TypeScript 类型错误
This commit is contained in:
@@ -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