Skip to content

Commit 1346b90

Browse files
committed
fix: remove usage of fill to support IE
Fix #332
1 parent 660572a commit 1346b90

File tree

1 file changed

+1
-1
lines changed
  • packages/@posva/vuefire-core/src/firestore

1 file changed

+1
-1
lines changed

Diff for: packages/@posva/vuefire-core/src/firestore/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function extractRefs(
3737
refs[path + key] = ref
3838
} else if (Array.isArray(ref)) {
3939
// TODO handle array
40-
data[key] = Array(ref.length).fill(null)
40+
data[key] = Array(ref.length)
4141
const oldArray = oldDoc[key] || []
4242
// Items that are no longer in the array aren't going to be processed
4343
const newElements = oldArray.filter(

0 commit comments

Comments
 (0)