fix: base64 image (#3238)

* fix: base64 image

* perf: quote qa
This commit is contained in:
Archer
2024-11-26 13:28:51 +08:00
committed by shilin66
parent 3f0876b997
commit d9c526a115
5 changed files with 51 additions and 34 deletions

View File

@@ -129,7 +129,11 @@ export const valueTypeFormat = (value: any, type?: WorkflowIOValueTypeEnum) => {
return value;
};
export const checkQuoteQAValue = (quoteQA: SearchDataResponseItemType[] = []) => {
export const checkQuoteQAValue = (quoteQA?: SearchDataResponseItemType[]) => {
if (!quoteQA) return undefined;
if (quoteQA.length === 0) {
return [];
}
if (quoteQA.some((item) => !item.q || !item.datasetId)) {
return undefined;
}