Fix hasSaveMethod not defined

This commit is contained in:
Sam Carlton 2022-06-10 16:24:18 -05:00
parent 95f4e2f7cd
commit fb35242c9c

View file

@ -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 ] ) )