Skip to content

Commit

Permalink
Null check on scope and options to ensure backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef authored and nathanwoulfe committed Mar 22, 2021
1 parent 046d635 commit fe8cd23
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,15 @@
* Method for opening an item in a list view for editing.
*
* @param {Object} item The item to edit
* @param {Object} scope The scope with options
*/
function editItem(item, scope) {

if (!item.editPath) {
return;
}

if (scope.options.useInfiniteEditor)
if (scope && scope.options && scope.options.useInfiniteEditor)
{
var editorModel = {
id: item.id,
Expand Down

0 comments on commit fe8cd23

Please sign in to comment.