fix: stringify response data is not a string (#3155)

This commit is contained in:
lohit 2024-09-21 11:26:38 +05:30 committed by GitHub
parent d7ff4e7ee0
commit f5a4525161
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,11 @@ const formatResponse = (data, mode, filter) => {
return safeStringifyJSON(parsed, true);
}
return data;
if (typeof data === 'string') {
return data;
}
return safeStringifyJSON(data, true);
};
const QueryResult = ({ item, collection, data, dataBuffer, width, disableRunEventListener, headers, error }) => {