You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have to map an object with a two level depth of nested dynamic properties.
i.e. myContainer.$category.$name.value
I am calling commit('updateField', {path:myContainer.${category}.${name}, value:metric.value});
If $category has never been set separately this break with an error 'Cannot set property ... of null'.
This should be an easy fix, to ensure path safety by creating empty objects if the key doesn't exist already.
The text was updated successfully, but these errors were encountered:
@maoberlehner technically this is different but I can see how working on a fix for #41 can include a fix for this use case as well.
I'm working on a pull request.
I have to map an object with a two level depth of nested dynamic properties.
i.e. myContainer.$category.$name.value
I am calling commit('updateField', {path:
myContainer.${category}.${name}
, value:metric.value});If $category has never been set separately this break with an error 'Cannot set property ... of null'.
This should be an easy fix, to ensure path safety by creating empty objects if the key doesn't exist already.
The text was updated successfully, but these errors were encountered: