Skip to content

Save without changes in gallery causes a crash #4989

@pantgurra

Description

@pantgurra

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions