Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix excessive api call #3157

Merged
merged 6 commits into from
Jan 11, 2024

Conversation

sultanmyrza
Copy link
Contributor

@sultanmyrza sultanmyrza commented Dec 26, 2023

Fixes #3137. Here is the demo

┆Issue is synchronized with this Asana task by Unito

@@ -72,8 +72,7 @@ export class CaptureItemComponent {
);

readonly hasCaption$ = this.proof$.pipe(
switchMap(proof => this.diaBackendAssetRepository.fetchByProof$(proof)),
map(asset => asset.caption !== '')
map(proof => proof.caption.trim() !== '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any reason why trim() is added?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@shc261392, just for safety. But I believe backend handles empty strings therefore I removed trim() in this commit refactor(capture-item): remove unnecessary .trim() on caption

@sultanmyrza sultanmyrza changed the base branch from v231207-capture-cam-ionic to v240104-capture-cam-ionic-launch January 10, 2024 02:16
@sultanmyrza sultanmyrza merged commit d9b5652 into v240104-capture-cam-ionic-launch Jan 11, 2024
6 of 7 checks passed
sultanmyrza added a commit that referenced this pull request Jan 31, 2024
…pi-call"

This reverts commit d9b5652, reversing
changes made to 064e7cf.
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