ava-ia / core

Agnostic Virtual Assistant
219 stars 21 forks source link

state.action is undefined #7

Closed Sonaryr closed 8 years ago

Sonaryr commented 8 years ago

When I create a custom action that adds the action property to state it fails with Error: Unknown action.

export default (state) => {
    state.action = {
        value: 'I fail'
    };
    return state;
}

When I change my action to use a promise it still fails in the same way.

soyjavi commented 8 years ago

👍