My variable named "subject" holds the string "Test". I am passing it to a props child using the following method:
onRowSelect(slotProps) {
this.subject = { ...slotProps.data.subject.split() };
}
Upon receiving the value of "subject" in my component, it displays as { "0": "Test" }
.
I am curious why this happens and how can I resolve this issue? What could be causing this unexpected result?