AmpersandJS / ampersand-state

Core state management object.
MIT License
141 stars 75 forks source link

def.values.join is not a function #258

Open chamathabeysinghe opened 5 years ago

chamathabeysinghe commented 5 years ago

In AmpersanJS app when trying to save a model, follwoing error is thrown.

Uncaught TypeError: def.values.join is not a function
    at child.set (ampersand-state.js:210)
    at child.save (ampersand-model.js:41)
    at import-nav.js:80
    at arrayEach (index.js:1289)
    at Function.<anonymous> (index.js:3345)
    at Constructor.confirmImport (import-nav.js:71)
    at Object.executeDispatch (EventPluginUtils.js:110)
    at executeDispatch (SimpleEventPlugin.js:305)
    at forEachEventDispatch (EventPluginUtils.js:98)
    at Object.executeDispatchesInOrder (EventPluginUtils.js:119)
dhritzkiv commented 5 years ago

Hi @chamathabeysinghe

Have you inspected what def and def.values resolve to?