From 8f390264a7138be113bfa14afbdc32ebe0a11534 Mon Sep 17 00:00:00 2001 From: Christoph Bartschat Date: Sat, 16 May 2026 23:56:32 -0700 Subject: [PATCH] Fix extraneous properties in state clean --- src/state.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state.js b/src/state.js index 549f0c8..a238cb8 100644 --- a/src/state.js +++ b/src/state.js @@ -95,8 +95,9 @@ export const createFlemsIoLink = state => { } function clean(state) { - const clean = Object.keys(defaults()).reduce((acc, x) => - (x in state && state[x] !== defaults[x] && (acc[x] = state[x]), acc) + const d = defaults() + const clean = Object.keys(d).reduce((acc, x) => + (x in state && state[x] !== d[x] && (acc[x] = state[x]), acc) , {}) if (state.files && state.files.length)