Fixes #1124: Trim alt text before saving (#1159)

* trim alt text before setting

* Drop `trim` from helpers.ts
zio/stable
Ansh 2023-08-14 09:41:44 -07:00 committed by GitHub
parent 003a75fd8e
commit 4d953f0504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -120,8 +120,8 @@ export class ImageModel implements Omit<RNImage, 'size'> {
} }
} }
async setAltText(altText: string) { setAltText(altText: string) {
this.altText = altText this.altText = altText.trim()
} }
// Only compress prior to upload // Only compress prior to upload