Yumi
Yumi

Reputation: 35

Can not delete post

There is an application written on rails and angular. The application is simple, all about taking data from the database and displaying them in the application table. After this, conduct various manipulations with them. The application can add data to the database and save the changes. But the problem is that can not delete the data. When you try to uninstall, the console displays the following error:

ERROR TypeError: Cannot read property 'chock_diameter_id' of undefined
ERROR CONTEXT DebugContext_ {view: {…}, nodeIndex: 14, nodeDef: {…}, elDef: {…}, elView: {…}}

If anyone knows how to fix it, please help.

Upvotes: 1

Views: 53

Answers (1)

Vivek Doshi
Vivek Doshi

Reputation: 58593

First change :

this.servSprChockDiameter.deleteSprChockDiameter(this.sprChockDiameter.chock_diameter_id)

to

this.servSprChockDiameter.deleteSprChockDiameter(sprChockDiameter.chock_diameter_id)

Change this :

'spr_chock_diameters/${id}'

to

`spr_chock_diameters/${id}`

For More Detail : Read

Upvotes: 1

Related Questions