fix(*): Web 构建 - 修复短剧项目空间合并后的 TypeScript 类型错误

This commit is contained in:
ddCat committed 2026-07-27 11:14:16 +08:00
1 parent d305a837b8
commit 38ae16cbb5
15 files changed
+63 -55

No files matched your search

+2 -1
View File
@@ -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 {