From 071ebe801d3f593c98e9d51d081714d6e714539a Mon Sep 17 00:00:00 2001 From: Daniel Asher Resnick Date: Wed, 1 Mar 2023 02:34:37 -0600 Subject: [PATCH] Use ko_deep_merge for incremental data removal --- src/lib/data/custom.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/data/custom.rb b/src/lib/data/custom.rb index b548a71..3ac96a3 100644 --- a/src/lib/data/custom.rb +++ b/src/lib/data/custom.rb @@ -15,10 +15,10 @@ module Charred data[:stocks].deep_merge!({ stock.key => stock }) when ".lifepaths" contents = json_get(file) - data[:lifepaths].deep_merge!({ contents["stock"] => contents["settings"]}) + data[:lifepaths].ko_deep_merge!({ contents["stock"] => contents["settings"]}) when ".resources" contents = json_get(file) - data[:resources].deep_merge!({ contents["stock"] => contents["resources"]}) + data[:resources].ko_deep_merge!({ contents["stock"] => contents["resources"]}) end end }