Skip to content

Commit 78a8900

Browse files
committed
Fix issue with readonly array.
1 parent 6556240 commit 78a8900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/firestore/src/remote/serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,7 @@ function decodeFilters(filter: ProtoFilter): Filter[] {
10031003
result instanceof CompositeFilter &&
10041004
compositeFilterIsFlatConjunction(result)
10051005
) {
1006-
return result.getFilters();
1006+
return Object.assign([], result.getFilters());
10071007
}
10081008

10091009
return [result];

0 commit comments

Comments
 (0)