Skip to content

Commit

Permalink
Slots: third time's a charm?!
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Apr 16, 2024
1 parent 329519a commit ec7b5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridgetown-core/lib/bridgetown-core/resource/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ec7b5af

Please sign in to comment.