Ghost/ghost
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
..
adapter-manager Update Test & linting packages 2022-11-07 20:39:48 +00:00
admin Fixed product card throwing "Cannot read properties of undefined (reading 'url')" errors 2022-11-22 13:13:42 +00:00
api-framework Update Test & linting packages 2022-11-07 20:39:48 +00:00
api-version-compatibility-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
audience-feedback Update Test & linting packages 2022-11-07 20:39:48 +00:00
bootstrap-socket Update Test & linting packages 2022-11-07 20:39:48 +00:00
constants Update Test & linting packages 2022-11-07 20:39:48 +00:00
core Wired up EmailSuppressionList to MEGA 2022-11-22 13:26:28 +07:00
custom-theme-settings-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
data-generator Update Test & linting packages 2022-11-07 20:39:48 +00:00
domain-events Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
email-analytics-provider-mailgun Update Test & linting packages 2022-11-07 20:39:48 +00:00
email-analytics-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
email-content-generator Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
email-service Added email service package (#15849) 2022-11-21 10:29:53 +01:00
email-suppression-list Fixed lint for @tryghost/email-suppression-list 2022-11-18 15:06:56 +07:00
express-dynamic-redirects Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
extract-api-key Fixed full Admin test suite running during unit tests 2022-08-15 15:34:52 +02:00
html-to-plaintext Update dependency mocha to v10.1.0 2022-10-17 08:41:28 +00:00
job-manager Update dependency cron-validate to v1.4.5 2022-11-21 12:34:38 +00:00
link-redirects Update Test & linting packages 2022-11-07 20:39:48 +00:00
link-replacer Update Test & linting packages 2022-11-07 20:39:48 +00:00
link-tracking Update Test & linting packages 2022-11-07 20:39:48 +00:00
magic-link Update Test & linting packages 2022-11-07 20:39:48 +00:00
mailgun-client Update dependency mailgun.js to v8.0.6 2022-11-17 22:31:28 +00:00
member-attribution 🐛 Fixed ref attribute in email links (#15775) 2022-11-08 11:24:00 +01:00
member-events Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-api Deleted .gitignore file in members-api package 2022-11-21 14:26:48 +07:00
members-csv Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-events-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
members-importer 🐛 Fixed complimentary_plan Member imports 2022-11-08 11:47:00 +07:00
members-ssr Update Test & linting packages 2022-11-07 20:39:48 +00:00
minifier Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-api-version-mismatch Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-cache-control Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-error-handler Improved server-side error handling 2022-11-21 12:13:16 +00:00
mw-session-from-token Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-update-user-last-seen Update Test & linting packages 2022-11-07 20:39:48 +00:00
mw-vhost Update dependency supertest to v6.3.1 2022-10-26 02:54:43 +00:00
oembed-service Update metascraper to v5.32.1 2022-11-21 15:31:26 +00:00
offers Update Test & linting packages 2022-11-07 20:39:48 +00:00
package-json Update Test & linting packages 2022-11-07 20:39:48 +00:00
payments Limited Stripe price lookups (#15823) 2022-11-17 14:33:46 +01:00
portal Released Portal v2.20.1 2022-11-18 14:32:46 +05:30
referrers Update Test & linting packages 2022-11-07 20:39:48 +00:00
security Update Test & linting packages 2022-11-07 20:39:48 +00:00
session-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
settings-path-manager Update Test & linting packages 2022-11-07 20:39:48 +00:00
staff-service Added note on package/class naming 2022-11-22 11:25:11 +07:00
stats-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
stripe Limited Stripe price lookups (#15823) 2022-11-17 14:33:46 +01:00
tiers 🐛 Fixed archiving Tiers (#15761) 2022-11-04 10:51:11 +07:00
update-check-service Update Test & linting packages 2022-11-07 20:39:48 +00:00
verification-trigger Removed getCreatedEvents and added verification trigger test (#15832) 2022-11-18 15:05:15 +01:00
version-notifications-data-service Update Test & linting packages 2022-11-07 20:39:48 +00:00