Skip to content

Commit cbae95c

Browse files
committed
Fix error when filtering non-space constrained resources
1 parent f3d43f9 commit cbae95c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/facets.rb

+1-1
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)