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

Issue on edgeProps definition #268

Open
emerikool opened this issue Dec 10, 2024 · 0 comments
Open

Issue on edgeProps definition #268

emerikool opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@emerikool
Copy link

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Other... Please describe:

By implementing edge property of Canvas component with the following:

edge=(props: EdgeProps) => {
    // console.log(props.data) => defined
    // console.log(props.properties.data) => undefined
    return <Edge {...props} />
}

EdgeProps don't follow its typescript definition, data is missing on property properties?: EdgeData level but available at root level.
It seems to be related to this piece of code:

...validEdgeData,

Environment


Libs:
- react version: 18.0.0
- realayers version: 5.3.1

@amcdnl amcdnl added the bug Something isn't working label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants