Skip to content

Commit 50a30ee

Browse files
committed
Fix error when filtering non-space constrained resources
1 parent f99f913 commit 50a30ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/facets.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Facets
99
start: ->(c) { c.name == 'Event' },
1010
running_during: ->(c) { c.name == 'Event' },
1111
include_hidden: ->(c) { c.method_defined?(:user_requires_approval?) },
12-
across_all_spaces: ->(_) { TeSS::Config.feature['spaces'] }
12+
across_all_spaces: ->(c) { TeSS::Config.feature['spaces'] && c.method_defined?(:space_id) }
1313
}.with_indifferent_access.freeze
1414

1515
CONVERSIONS = {

0 commit comments

Comments
 (0)