Skip to content

Comments

make keys actually unique#80

Merged
ascibisz merged 1 commit intomainfrom
fix/form-error
Sep 15, 2025
Merged

make keys actually unique#80
ascibisz merged 1 commit intomainfrom
fix/form-error

Conversation

@ascibisz
Copy link
Contributor

@ascibisz ascibisz commented Sep 11, 2025

Problem

I noticed some buggy behavior in the viewer when changing between different recipes. After fumbling around in react, I learned it was because the "key" field is very important and we were having overlapping values when we were setting it to the Editable Field's path (because multiple recipes had "objects.endosome.radius", for example)

To fix this, we now set "key" to the firebase ID, which is actually unique to each editable field!

@interim17 helped me debug and the client site was rendering very dark for him, and he traced it down to the background color set in index.css, so that's getting changed in this PR too.

@github-actions
Copy link

github-actions bot commented Sep 11, 2025

PR Preview Action v1.6.2
Preview removed because the pull request was closed.
2025-09-15 19:47 UTC

@ascibisz ascibisz marked this pull request as ready for review September 11, 2025 22:19
@ascibisz ascibisz requested a review from rugeli September 11, 2025 22:19
Copy link
Contributor

@rugeli rugeli left a comment

Choose a reason for hiding this comment

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

LGTM!

@ascibisz ascibisz merged commit dcd6be7 into main Sep 15, 2025
2 checks passed
@ascibisz ascibisz deleted the fix/form-error branch September 15, 2025 19:47
@ascibisz ascibisz mentioned this pull request Sep 17, 2025
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.

2 participants