Skip to content

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

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
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.

3 participants