Skip to content

Commit 2d1023b

Browse files
committed
chore(events): prevent booking rooms with a external booking URL
1 parent 9d4ef51 commit 2d1023b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libs/events/src/lib/new-event-form.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ export class EventFormService extends AsyncHandler {
183183
catchError(() => of([])),
184184
);
185185
}),
186-
map((list) => list.filter((_) => _.bookable && _.email)),
186+
map((list: Space[]) =>
187+
list.filter(
188+
(_) => _.bookable && _.email && !_.room_booking_url,
189+
),
190+
),
187191
tap(() => this.removeLoadingTag(Tags.ListingRooms)),
188192
startWith([]),
189193
shareReplay(1),

0 commit comments

Comments
 (0)