Skip to content

Commit c2f2034

Browse files
ErykKulCopilot
andauthored
Update src/app/submit/submit.component.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6ecd40d commit c2f2034

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/app/submit/submit.component.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,6 @@ export class SubmitComponent implements OnInit, OnDestroy, SubscriptionManager {
103103
const nav = this.router.getCurrentNavigation();
104104
if (nav?.extras?.state) {
105105
state = nav.extras.state as { metadata?: Metadata };
106-
} else if (
107-
typeof window !== 'undefined' &&
108-
window.history &&
109-
window.history.state
110-
) {
111-
// Fallback for environments/tests where Router.getCurrentNavigation is not available
112-
state = window.history.state as { metadata?: Metadata };
113106
}
114107
if (state?.metadata) {
115108
this.incomingMetadata = state.metadata;

0 commit comments

Comments
 (0)