Ghost/ghost/admin/lib/koenig-editor/addon
Kevin Ansfield f25cc00236 Fixed product card throwing "Cannot read properties of undefined (reading 'url')" errors
closes https://github.com/TryGhost/Team/issues/2295

Problem:
- `<GhUploader>` is not yet converted to an Octane component so it's arguments are not read-only
- when a file is selected it sets it's `files` property which in turn updates the tracked `files` property that was passed in, and then again updates it to an empty file list when the input field is cleared
- that tracked property was never cleared once the product image was uploaded resulting in a "re-upload" attempt with an empty file list every time the product card was put back into edit mode

Fix:
- added a guard in `<GhUploader>` so it doesn't try to upload an empty file list if one is passed in as an attribute
- added a reset of the tracked `files` property in the product card once the image upload is complete
2022-11-22 13:13:42 +00:00
..
components Fixed product card throwing "Cannot read properties of undefined (reading 'url')" errors 2022-11-22 13:13:42 +00:00
helpers Fixed hosting management screen not loading after sign-in process (#15763) 2022-11-03 11:14:36 +00:00
lib 🐛 Fixed line breaks not persisting when used inside email cards 2022-08-16 16:56:40 +01:00
options 💡 Upgraded Tenor API to v2 (#15087) 2022-08-05 12:13:27 +01:00
services Removed prototype button atom 2021-07-23 09:21:03 +01:00
utils Deleted unused files 2022-09-24 13:27:54 +02:00