diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 03:28:01 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-05 03:28:01 +0200 |
| commit | 51d9212d97e3b326a8e9e6499bc83d27df2ef64c (patch) | |
| tree | 44ac764f2a59e63115e19a18b3540e87b6c106ea /app/client/api | |
| parent | cf75d24a208043c2702b9ef4c1a5967f446a40cb (diff) | |
dont train images lol
Diffstat (limited to 'app/client/api')
| -rw-r--r-- | app/client/api/crud.upload.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/client/api/crud.upload.js b/app/client/api/crud.upload.js index bee280e..6f82d27 100644 --- a/app/client/api/crud.upload.js +++ b/app/client/api/crud.upload.js @@ -66,7 +66,7 @@ export function crud_upload(type, fd, data, dispatch) { data: parsed, [type]: id, }) - if (parsed.files.length) { + if (parsed.files && parsed.files.length) { parsed.files.forEach(file => { console.log(file) dispatch && dispatch({ |
