Unverified Commit 518083df authored by crazywoola's avatar crazywoola Committed by GitHub

fix: metadata not saved (#1429)

parent 2b366bb3
...@@ -175,7 +175,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => { ...@@ -175,7 +175,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {
</div> </div>
} }
{showMetadata && <Metadata {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} loading={isMetadataLoading}
onUpdate={metadataMutate} onUpdate={metadataMutate}
/>} />}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment