fix: metadata not saved (#1429)

This commit is contained in:
crazywoola 2023-10-30 14:39:15 +08:00 committed by GitHub
parent 2b366bb321
commit 518083dfe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,7 +175,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {
</div>
}
{showMetadata && <Metadata
docDetail={{ ...documentDetail, ...documentMetadata, doc_type: documentDetail?.doc_type === 'others' ? '' : documentDetail?.doc_type } as any}
docDetail={{ ...documentDetail, ...documentMetadata, doc_type: documentMetadata?.doc_type === 'others' ? '' : documentMetadata?.doc_type } as any}
loading={isMetadataLoading}
onUpdate={metadataMutate}
/>}