aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/apis/google_docs/GooglePhotosClientUtils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/apis/google_docs/GooglePhotosClientUtils.ts b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
index b308cc9be..63cbc8867 100644
--- a/src/client/apis/google_docs/GooglePhotosClientUtils.ts
+++ b/src/client/apis/google_docs/GooglePhotosClientUtils.ts
@@ -170,6 +170,8 @@ export namespace GooglePhotos {
if (tags.length > 1) {
const cleaned = concatenated.replace(ContentCategories.NONE + delimiter, "");
image.googlePhotosTags = cleaned.split(delimiter).sort((a, b) => (a < b) ? -1 : (a > b ? 1 : 0)).join(delimiter);
+ } else {
+ image.googlePhotosTags = ContentCategories.NONE;
}
});