Skip to content

Commit

Permalink
Merge pull request #3190 from projectblacklight/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
taylor-steve authored Oct 15, 2024
2 parents 7fcd702 + d82fcc2 commit ea11740
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
name: test (ruby ${{ matrix.ruby }} / rails ${{ matrix.rails_version }} / blacklight ${{ matrix.blacklight_version }} ${{ matrix.additional_name }})
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions app/models/spotlight/custom_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def label=(label)
end

def label
conf = if field && blacklight_configuration && blacklight_configuration.index_fields.key?(field)
conf = if field && blacklight_configuration&.index_fields&.key?(field)
blacklight_configuration.index_fields[field].reverse_merge(configuration)
else
configuration
Expand Down Expand Up @@ -74,7 +74,7 @@ def blacklight_configuration
end

def update_blacklight_configuration_label(label)
return unless field && blacklight_configuration && blacklight_configuration.index_fields.key?(field)
return unless field && blacklight_configuration&.index_fields&.key?(field)

blacklight_configuration.index_fields[field]['label'] = label
blacklight_configuration.save
Expand Down
4 changes: 2 additions & 2 deletions app/models/spotlight/custom_search_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def label=(label)
end

def label
conf = if slug && blacklight_configuration && blacklight_configuration.search_fields.key?(slug)
conf = if slug && blacklight_configuration&.search_fields&.key?(slug)
blacklight_configuration.search_fields[slug].reverse_merge(configuration)
else
configuration
Expand All @@ -32,7 +32,7 @@ def blacklight_configuration
end

def update_blacklight_configuration_label(label)
return unless slug && blacklight_configuration && blacklight_configuration.search_fields.key?(slug)
return unless slug && blacklight_configuration&.search_fields&.key?(slug)

blacklight_configuration.search_fields[slug]['label'] = label
blacklight_configuration.save
Expand Down

0 comments on commit ea11740

Please sign in to comment.