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

Current Value Passed into the Modifier Isn't Correct Datatype #25

Closed
G0ldenSp00n-zz opened this issue Sep 19, 2018 · 0 comments · Fixed by #29
Closed

Current Value Passed into the Modifier Isn't Correct Datatype #25

G0ldenSp00n-zz opened this issue Sep 19, 2018 · 0 comments · Fixed by #29
Assignees
Labels
bug Something isn't working

Comments

@G0ldenSp00n-zz
Copy link
Collaborator

Describe the bug
Trying to modify an array with a modifier doesn't work as the current value that is passed into the array is an object, and not an array.

siloNode.initializedModifiers({
     arrayNode: {
            addToArray(current) {
                 current.push('test'); //Doesn't Work Because Current is An Object.
            }
     }
}

To Reproduce
Steps to reproduce the behavior:

  1. Create an Array in the Silo.
  2. Create A Modifier to Modify the Array
  3. Running that Function and Observe the Object that came in.

Expected behavior
The current value passed into the modifier of the array function should be an array, rather than an object. As this is confusing to the developer who would be expecting an array to come in.

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

Successfully merging a pull request may close this issue.

2 participants