Skip to content

Archive Project fails from the Settings page #2333

@matiasgarciaisaia

Description

@matiasgarciaisaia

Steps to reproduce

1 - Create a project
2 - Navigate to its Settings
3 - Click Archive project

The project should now be archived. Instead, Surveda throws an error in the UI with a meaningless explanation:

Error report showing a JavaScript stacktrace

Firefox's Console says there's an undefined function dispatch or something:

TypeError: dispatch is not a function
error { target: Window, isTrusted: true, message: "TypeError: dispatch is not a function", filename: "http://app.surveda.lvh.me/js/app.js", lineno: 314503, colno: 15, error: TypeError, srcElement: Window, eventPhase: 0, bubbles: true, … }
​
bubbles: true
​
cancelBubble: false
​
cancelable: true
​
colno: 15
​
composed: false
​
currentTarget: null
​
defaultPrevented: true
​
error: TypeError: dispatch is not a function
​
eventPhase: 0
​
explicitOriginalTarget: 
​
filename: "http://app.surveda.lvh.me/js/app.js"
​
isTrusted: true
​
lineno: 314503
​
message: "TypeError: dispatch is not a function"
​
originalTarget: Window http://app.surveda.lvh.me/projects/2/settings
​
returnValue: false
​
srcElement: Window http://app.surveda.lvh.me/projects/2/settings
​
target: Window http://app.surveda.lvh.me/projects/2/settings
​
timeStamp: 12669
​
type: "error"
​
: function isTrusted()
​
: ErrorEventPrototype { message: Getter, filename: Getter, lineno: Getter, … }
app.js:215197:11

Happens both in development (012c741) as in production (0.37.2).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions