Browse Source

fix: metadata not saved (#1429)

crazywoola 1 year ago
parent
commit
518083dfe0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/app/components/datasets/documents/detail/index.tsx

+ 1 - 1
web/app/components/datasets/documents/detail/index.tsx

@@ -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}
           />}