We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a40930c + bcadcc2 commit 678877aCopy full SHA for 678877a
src/lib/pages/domains/create.svelte
@@ -15,8 +15,15 @@
15
domain.set({ $id: '', domain: '' });
16
17
return realtime
18
- .forProject($page.params.region, $page.params.region)
19
- .subscribe<Models.ProxyRule>('console', (data) => domain.set(data.payload));
+ .forProject($page.params.region, $page.params.project)
+ .subscribe<Models.ProxyRule>('console', (message) => {
20
+ if (
21
+ message.channels.includes(`projects.${$page.params.project}`) &&
22
+ message.events.includes('rules.*')
23
+ ) {
24
+ domain.set(message.payload);
25
+ }
26
+ });
27
});
28
29
async function onFinish() {
0 commit comments