Fix undefined data for files

Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
Frank Jogeleit
2022-10-05 17:29:30 +02:00
parent 9e07856983
commit 2214f2de10
4 changed files with 770 additions and 64 deletions

View File

@@ -97,7 +97,7 @@ const request = async({ method, instanceConfig, data, files, file, actions, igno
*/
const convertToJSON = (value) => {
try {
return JSON.parse(value)
return JSON.parse(value) || {}
} catch(e) {
return {}
}