Skip to content

fix: Fixed cookie modal issue [INS-5210] - #8508

Merged
pavkout merged 2 commits into
Kong:developfrom
pavkout:feature/ins-5210
Mar 24, 2025
Merged

fix: Fixed cookie modal issue [INS-5210] #8508
pavkout merged 2 commits into
Kong:developfrom
pavkout:feature/ins-5210

Conversation

@pavkout

@pavkout pavkout commented Mar 22, 2025

Copy link
Copy Markdown
Contributor
image

Closes INS-5210, 8507

@pavkout pavkout self-assigned this Mar 22, 2025
@pavkout
pavkout requested a review from a team March 22, 2025 22:26
@pavkout pavkout changed the title fix: Fixed cookie issue [INS-5210] fix: Fixed cookie modal issue [INS-5210] Mar 22, 2025
@@ -107,7 +97,16 @@ export const CookiesModal = ({ setIsOpen }: Props) => {

const handleAddCookie = () => {
const updatedActiveCookieJar = activeCookieJar;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const updatedActiveCookieJar = {...activeCookieJar};
It would be better to copy the origin object data first rather than modify props directly.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CurryYangxx Yes, we can do it. Let's do it in a separate PR and check all the places we need to change.

@pavkout
pavkout requested a review from CurryYangxx March 24, 2025 11:02
@pavkout
pavkout merged commit b31ed7e into Kong:develop Mar 24, 2025
cwangsmv pushed a commit that referenced this pull request Apr 21, 2025
* refactor: streamline cookie creation in CookiesModal

* refactor: remove debug log from CookiesModal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants