Commit c8afe707 authored by nanahira's avatar nanahira

fix

parent 1dc716ed
Pipeline #4958 passed with stages
in 6 minutes and 42 seconds
......@@ -458,9 +458,10 @@ export class RoomListDataSource extends DataSource<Room> {
return this.ygopro.serverForm.valueChanges.pipe(
this.ygopro.serverForm.value ? startWith(this.ygopro.serverForm.value) : tap(),
switchMap(env =>
switchMap((env: Server) =>
combineLatest(
[env].filter(s => s.url && (s.custom || s.replay)).map(server => {
// TODO: use env
this.ygopro.servers.filter(s => s.url && (s.custom || s.replay) && (env.id! === 'tiramisu' && s.id!.startsWith('tiramisu') || s === env)).map(server => {
const url = new URL(server.url!);
url.searchParams.set('filter', this.type);
// 协议处理
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment