Infinite page reloads vue.js method

63 Views Asked by At

in method When I am updating the ticket status. if we select ticket status = open page is refreshing continuesly.

isEditableField(fieldname) { if (fieldname === 'status') { return true; } else if (this.ticket.status === 'Closed' || this.ticket.status === 'Resolved') { return false; } else if (this.ticket.status === 'Open'){ location.reload() return true; } },

Page should be refresh once when we select the ticket status open.

0

There are 0 best solutions below