How to append a value to a Firestore array field in Make without merging all items into one string?

:puzzle_piece: Problem: Firestore array update adds all tags as a single string

Hi everyone!

I’m using Make to update a Firestore document, and I’m trying to append a new tag ("procpect") to an existing array field called tags.

Here’s the setup:

  • Document Path: /chats/{{1.chatId}}

  • Field Name: tags

  • Value Type: Array Value

  • Value:

    add(1.2.Fields.tags[]; "procpect")
    

:cross_mark: The Issue:

Instead of adding "procpect" as a new item to the array, it ends up adding everything as a single string inside one array item.

:light_bulb: I expected this:

["lead", "followup", "procpect"]

But I’m getting this:

["lead, followup, procpect"]

:white_check_mark: What I’m Looking For:

How can I correctly append a new string to the tags array without merging it into one stringified item?

Any help or guidance would be appreciated :folded_hands:
Thanks in advance!