Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 98ab2a4

Browse files
committed
Fix Streams Routing
Resolves #713
1 parent 70e7da2 commit 98ab2a4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

ui/src/app/streams/streams-routing.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ const streamRoutes: Routes = [
2020
children: [
2121
{
2222
path: '',
23+
pathMatch: 'full',
24+
redirectTo: 'definitions'
25+
},
26+
{
27+
path: 'definitions',
2328
component: StreamsComponent,
2429
},
2530
{

ui/src/app/streams/streams/streams.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ export class StreamsComponent implements OnInit, OnDestroy {
453453
const className = streamDefinitions.length > 1 ? 'modal-lg' : 'modal-md';
454454
this.modal = this.modalService.show(StreamsDestroyComponent, { class: className });
455455
this.modal.content.open({ streamDefinitions: streamDefinitions }).subscribe(() => {
456-
if (this.streamsService.streamDefinitions.items.length === 0 &&
457-
this.streamsService.streamDefinitions.pageNumber > 0) {
456+
if (this.streamDefinitions.items.length === 0 &&
457+
this.streamDefinitions.pageNumber > 0) {
458458
this.streamDefinitions.pageNumber = this.streamDefinitions.pageNumber - 1;
459459
}
460460
this.refresh();

0 commit comments

Comments
 (0)