From ec7b5af444e15d3cd5893f863c2754c8ace03f2a Mon Sep 17 00:00:00 2001 From: Jared White Date: Mon, 15 Apr 2024 20:13:11 -0700 Subject: [PATCH] Slots: third time's a charm?! --- bridgetown-core/lib/bridgetown-core/resource/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridgetown-core/lib/bridgetown-core/resource/base.rb b/bridgetown-core/lib/bridgetown-core/resource/base.rb index 2dfcbef06..5344aa285 100644 --- a/bridgetown-core/lib/bridgetown-core/resource/base.rb +++ b/bridgetown-core/lib/bridgetown-core/resource/base.rb @@ -160,6 +160,7 @@ def transform! # rubocop:todo Metrics/CyclomaticComplexity end transformer.process! unless collection.data? + slots.clear @previously_transformed = true rescue StandardError, SyntaxError => e internal_error = e @@ -354,7 +355,6 @@ def unmark_for_fast_refresh! def prepare_for_fast_refresh! # rubocop:todo Metrics dispose_of_transform_effect FileUtils.rm(destination.output_path, force: true) if requires_destination? - slots.clear past_values = @data.peek.select do |key| key == "categories" || key == "tags" || site.taxonomy_types.keys.any?(key) end