ソースを参照

fix: metadata not saved (#1429)

crazywoola 1 年間 前
コミット
518083dfe0
1 ファイル変更1 行追加1 行削除
  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>
             </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}
           />}
           />}