Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 8bef350

Browse files
committed
fix
1 parent 3009292 commit 8bef350

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/utils/ai_staff_action_logger.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,11 @@ def extract_entity_attributes(entity, field_config)
130130

131131
# Process each field according to its configuration
132132
field_config.each do |field, options|
133-
# Skip fields explicitly marked as not to be extracted
134-
next if options[:extract] == false
133+
# Skip special keys like :json_fields which are arrays, not field configurations
134+
next if field == :json_fields
135+
136+
# Skip if options is not a hash or if explicitly marked as not to be extracted
137+
next if !options.is_a?(Hash) || options[:extract] == false
135138

136139
# Get the actual field value
137140
field_sym = field.to_sym

0 commit comments

Comments
 (0)