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 think this is related to webpack, but not sure. the name data didnt work for this method. changing it to getData() worked
/**
* Fetch all relevant data for the form.
*/
getData () {
const data = {}
for (const property in this.originalData) {
data[property] = this[property]
}
return data
}
The text was updated successfully, but these errors were encountered:
By some strange reason, if the instance of the Form class not is named form, and the data attribute is called data, this failure is thrown.
I try using
....
data: ()=>{
links: newForm({....})...}
...
// in some methodlinks.post('url-to-end-point').then(...).catch(...)
And its fails with the message links.post is not a function
But instead changing links by form magiclly works! I'm not a expert on javascript but this is a no sence behavior. Or a colateral behavior by using some declaration in some place in the code.
I think this is related to webpack, but not sure. the name
data
didnt work for this method. changing it togetData()
workedThe text was updated successfully, but these errors were encountered: