Closed ani4aniket closed 4 years ago
This PR replaces regular JavaScript functions with ES6 arrow function. Using arrow functions we don't need to bind this while using the functions as mentioned below. https://github.com/casbin/casbin-dashboard/blob/b0d12da8dcd7ea5db5a3c65ae36af771cbe715c1/web/src/ModelTable.js#L137
this
Fixes #19
This PR replaces regular JavaScript functions with ES6 arrow function. Using arrow functions we don't need to bind
this
while using the functions as mentioned below. https://github.com/casbin/casbin-dashboard/blob/b0d12da8dcd7ea5db5a3c65ae36af771cbe715c1/web/src/ModelTable.js#L137Fixes #19