From cf0c5c1630dbf699c1dc85cca002b9d2ea564a43 Mon Sep 17 00:00:00 2001 From: Myllena Alves Date: Mon, 5 Aug 2024 10:49:25 -0300 Subject: [PATCH] TCM-511: Fix processedRedirects value attribution (#469) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What problem is this solving? It's described [here](https://vtex-dev.atlassian.net/browse/TCM-511?focusedCommentId=288544&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-288544). #### How should this be manually tested? [Workspace](https://redirects--carolcanelas.myvtex.com/admin/cms/redirects/) #### Screenshots or example usage #### Type of changes | ✔️ | Type of Change | | --- | ----------------------------------------------------------------------------------------- | | ✔️ | Bug fix | | \_ | New feature | | \_ | Breaking change | | \_ | Technical improvements | #### Notes #### How does this PR make you feel? [:link:](http://giphy.com/categories/emotions/) ![](put .gif link here - can be found under "advanced" on giphy) --- CHANGELOG.md | 22 +++++++++++++++---- .../admin/redirects/UploadModal/index.tsx | 2 +- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index def6ea624..2799e901d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fix processedRedirects value atribution. + ## [4.55.0] - 2024-07-15 ### Added + - Add the LMProductId to the navigation.json file. ## [4.54.1] - 2024-04-24 @@ -29,11 +34,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [4.53.0] - 2023-12-20 ### Add + - Robots to be editable in page's form ### Fixed -- Translations for Bulgarian, Spanish, French, Korean, Dutch and Thai. +- Translations for Bulgarian, Spanish, French, Korean, Dutch and Thai. ## [4.52.0] - 2023-11-28 @@ -41,36 +47,43 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Translations for the `fetchSponsoredProductsOnSearch` advanced setting. - ## [4.51.2] - 2023-07-10 ## [4.51.1] - 2023-06-21 - ### Fixed + - Fix exhibition of the end date of temporary redirects. ## [4.51.0] - 2023-06-14 - 2023-06-05 + ### Added + - Redirects searcher ## [4.50.0] - 2023-04-03 ### Added + - German translation. ### Fixed + - English, French, Italian, Portuguese, Spanish and Thai translation. - I18n for color picker label. - I18n issue in Media Gallery Widget component. ## [4.49.13] - 2023-03-27 + ### Changed + - `apps-graphql` version ## [4.49.12] - 2023-03-14 + ### Fix -- Displayed message at UI in redirects type was wrong + +- Displayed message at UI in redirects type was wrong ## [4.49.11] - 2022-12-19 @@ -87,6 +100,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [4.49.9] - 2022-12-07 ### Fixed + - Missing messages in all languages. ## [4.49.8] - 2022-11-01 diff --git a/react/components/admin/redirects/UploadModal/index.tsx b/react/components/admin/redirects/UploadModal/index.tsx index b84c6002e..5e76a6ecd 100644 --- a/react/components/admin/redirects/UploadModal/index.tsx +++ b/react/components/admin/redirects/UploadModal/index.tsx @@ -136,7 +136,7 @@ const UploadModal: React.FunctionComponent { - setProcessedRedirect(current => current + processed) + setProcessedRedirect(processed) }, })