From fb35242c9c05495146873124ec1240be06600b36 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Fri, 10 Jun 2022 16:24:18 -0500 Subject: [PATCH] Fix hasSaveMethod not defined --- build-lists.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ] ) )