diff --git a/build-lists.js b/build-lists.js index 20cd2f2..0a61cd2 100644 --- a/build-lists.js +++ b/build-lists.js @@ -502,8 +502,8 @@ class BuildLists { }) } - const saveMethod = hasSaveMethod ? listOptions.beforeSave : listSet => Array.from( listSet ) const hasSaveMethod = has( listOptions, 'beforeSave' ) + const saveMethod = hasSaveMethod ? listOptions.beforeSave : listSet => Array.from( listSet ) const [ saveableEntry ] = saveMethod( new Set( [ listEntry ] ) )