Skip to content

connect frontend and backend#45

Merged
zaba51 merged 6 commits intomainfrom
feature/backend_news
Aug 24, 2025
Merged

connect frontend and backend#45
zaba51 merged 6 commits intomainfrom
feature/backend_news

Conversation

@zaba51
Copy link
Copy Markdown
Contributor

@zaba51 zaba51 commented Jul 19, 2025

No description provided.

@zaba51 zaba51 marked this pull request as draft July 19, 2025 20:46
@Michal-Piotrkowski Michal-Piotrkowski marked this pull request as ready for review July 23, 2025 18:57
Michal-Piotrkowski

This comment was marked as duplicate.

Copy link
Copy Markdown
Contributor

@Michal-Piotrkowski Michal-Piotrkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :)

switchMap(slug => this.newsService.getBySlug(slug)),
).subscribe(item => {
if (item) {
if (typeof item === 'object') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential issue: typeof null === 'object' would be true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably change the name or split it somehow? It’s a bit confusing, but we can also keep it as is.

@zaba51 zaba51 merged commit aea62a3 into main Aug 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants