Skip to content

Commit 49682f3

Browse files
committed
fix(explore): fix setting room booking form when external
1 parent 6c7ac5b commit 49682f3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/explore/src/lib/explore-spaces.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,6 @@ export class ExploreSpacesService extends AsyncHandler implements OnDestroy {
152152
}),
153153
);
154154
}
155-
this._event_form.newForm();
156-
this._event_form.form.patchValue({
157-
host: currentUser()?.email,
158-
resources: [space],
159-
});
160155
if (room_alerts[space.id]?.[0] === 'closed') {
161156
return notifyError(`${room_alerts[space.id][1]}`);
162157
}
@@ -181,6 +176,11 @@ export class ExploreSpacesService extends AsyncHandler implements OnDestroy {
181176
window.open(url, '_blank', 'noopener noreferer');
182177
return;
183178
}
179+
this._event_form.newForm();
180+
this._event_form.form.patchValue({
181+
host: currentUser()?.email,
182+
resources: [space],
183+
});
184184
this._dialog.open(
185185
(this._settings.get('app.explore.show_booking_qr')
186186
? ExploreBookQrComponent

0 commit comments

Comments
 (0)