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

* trim alt text before setting

* Drop `trim` from helpers.ts
This commit is contained in:
Ansh
2023-08-14 09:41:44 -07:00
committed by GitHub
parent 003a75fd8e
commit 4d953f0504
+2 -2
View File
@@ -120,8 +120,8 @@ export class ImageModel implements Omit<RNImage, 'size'> {
}
}
async setAltText(altText: string) {
this.altText = altText
setAltText(altText: string) {
this.altText = altText.trim()
}
// Only compress prior to upload