keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.65k stars 2.21k forks source link

Save without changes in gallery causes a crash #4989

Open pantgurra opened 4 years ago

pantgurra commented 4 years ago

Clicking save in gallery causes a crash when file has been uploaded and saved, when clicking save again without any change.

Steps to reproduce the actual/current behavior

-Upload a file to Gallery -Press save -Press save again without changing anything

It crashes with error: TypeError: Cannot read property 'public_id' of undefined at /usr/src/app/node_modules/keystone/fields/types/cloudinaryimages/CloudinaryImagesType.js:35:14

Environment

http://demo.keystonejs.com/

sambhav2612 commented 3 years ago

@pantgurra were you able to fix this?