fix: เพิ่ม fallback
This commit is contained in:
parent
5c6768e6d9
commit
42da572b7c
1 changed files with 2 additions and 2 deletions
|
|
@ -48,11 +48,11 @@ function triggerFileEdit(
|
||||||
fileFormType.value = 'edit'
|
fileFormType.value = 'edit'
|
||||||
fileFormPath.value = pathname
|
fileFormPath.value = pathname
|
||||||
fileFormData.value = {
|
fileFormData.value = {
|
||||||
title: value.title,
|
title: (value.metadata?.subject as string) ?? value.title,
|
||||||
description: value.description,
|
description: value.description,
|
||||||
keyword: value.keyword,
|
keyword: value.keyword,
|
||||||
category: value.category,
|
category: value.category,
|
||||||
author: value.author,
|
author: (value.metadata?.author as string) ?? value.author,
|
||||||
metadata: value.metadata,
|
metadata: value.metadata,
|
||||||
}
|
}
|
||||||
fileNameLabel.value = file
|
fileNameLabel.value = file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue