Skip to content

Commit

Permalink
Simplify response property access
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival authored and paveljanda committed Nov 17, 2020
1 parent f96f64b commit a879f2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if (typeof naja !== "undefined") {

if(success) {
naja.addEventListener('success', function (params) {
var payload = isNaja2() ? params.detail.payload : najaEventParams(params).response;
var payload = isNaja2() ? params.detail.payload : params.response;
success(payload, najaEventParams(params).options);
});
}
Expand Down

0 comments on commit a879f2c

Please sign in to comment.