mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-01 05:14:25 +00:00
feat(asset): refactor version stack to surface latest metadata and add UI support
This commit is contained in:
@@ -136,7 +136,10 @@ function FileViewPage() {
|
||||
currentAsset={{
|
||||
name: fileData.name,
|
||||
type: 'file',
|
||||
version: fileData.type === 'version_stack' ? fileData.fileCount : undefined,
|
||||
version: fileData.versionStack
|
||||
? (fileData.versionStack.versions.find((v) => v.id === fileData.id)?.version ??
|
||||
fileData.versionStack.versions.length)
|
||||
: undefined,
|
||||
}}
|
||||
isRootFolder={false}
|
||||
isLeftSidebarCollapsed={isLeftSidebarCollapsed}
|
||||
|
||||
Reference in New Issue
Block a user