Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix React unique key bug in Edit menu #985

Open
dave-doty opened this issue Sep 9, 2024 · 0 comments
Open

fix React unique key bug in Edit menu #985

dave-doty opened this issue Sep 9, 2024 · 0 comments
Assignees
Labels
closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/

Comments

@dave-doty
Copy link
Member

Refresh the page in scadnano, then click the Edit menu. This error appears:

react-bootstrap.js:7631 Warning: Each child in a list should have a unique "key" prop.

Check the render method of `DropdownButton`. It was passed a child from MenuDropdownRight. See https://reactjs.org/link/warning-keys for more information.
    at span
    at http://localhost:8080/external-libs/react-bootstrap.js:7611:20
    at MenuDropdownRight (http://localhost:8080/packages/react/react.js:275:7)
    at div
    at http://localhost:8080/external-libs/react-bootstrap.js:7248:23
    at div
    at http://localhost:8080/external-libs/react-bootstrap.js:11173:23
    at Dropdown (http://localhost:8080/external-libs/react-bootstrap.js:6875:19)
    at http://localhost:8080/external-libs/react-bootstrap.js:7473:26
    at http://localhost:8080/external-libs/react-bootstrap.js:11837:17
    at nav
    at http://localhost:8080/external-libs/react-bootstrap.js:11714:26
    at Menu (http://localhost:8080/packages/react/react.js:275:7)
    at ConnectFunction (http://localhost:8080/packages/react/react_dom.js:7433:75)
    at Connect(Menu)
    at Provider (http://localhost:8080/packages/react/react_dom.js:7146:20)
    at RecoverableErrorBoundary (http://localhost:8080/packages/react/react.js:275:7)
    at ErrorBoundary (http://localhost:8080/packages/react/react.js:275:7)

This appears like it is unrelated, but it also appears at the same time:

console.js:288 Warning: The tag <text> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.
    at text
    at button
    at http://localhost:8080/external-libs/react-bootstrap.js:3935:23
    at http://localhost:8080/external-libs/react-bootstrap.js:7348:23
    at div
    at Dropdown (http://localhost:8080/external-libs/react-bootstrap.js:6875:19)
    at http://localhost:8080/external-libs/react-bootstrap.js:7473:26
    at http://localhost:8080/external-libs/react-bootstrap.js:7611:20
    at MenuDropdownRight (http://localhost:8080/packages/react/react.js:275:7)
    at div
    at http://localhost:8080/external-libs/react-bootstrap.js:7248:23
    at div
    at http://localhost:8080/external-libs/react-bootstrap.js:11173:23
    at Dropdown (http://localhost:8080/external-libs/react-bootstrap.js:6875:19)
    at http://localhost:8080/external-libs/react-bootstrap.js:7473:26
    at http://localhost:8080/external-libs/react-bootstrap.js:11837:17
    at nav
    at http://localhost:8080/external-libs/react-bootstrap.js:11714:26
    at Menu (http://localhost:8080/packages/react/react.js:275:7)
    at ConnectFunction (http://localhost:8080/packages/react/react_dom.js:7433:75)
    at Connect(Menu)
    at Provider (http://localhost:8080/packages/react/react_dom.js:7146:20)
    at RecoverableErrorBoundary (http://localhost:8080/packages/react/react.js:275:7)
    at ErrorBoundary (http://localhost:8080/packages/react/react.js:275:7)
@dave-doty dave-doty assigned dave-doty and unassigned nehashafi18 Sep 24, 2024
@dave-doty dave-doty added the closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/ label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed in dev Indicates issue is closed in the dev branch, available at: https://scadnano.org/dev/
Projects
None yet
Development

No branches or pull requests

2 participants