Skip to content

Commit 3e16607

Browse files
fix: Mismatched spread iterator-types (#11405)
An object may not be spread into an array
1 parent 0b5bc2f commit 3e16607

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/js/fixtures/tags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function Tags(params = {}) {
1+
export function Tags(params = []) {
22
return [
33
{key: 'browser', name: 'Browser', canDelete: true, totalValues: 30},
44
{key: 'device', name: 'Device', canDelete: true, totalValues: 5},

tests/js/fixtures/tagvalues.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export function TagValues(params = {}) {
1+
export function TagValues(params = []) {
22
return [
33
{
44
key: 'browser',

0 commit comments

Comments
 (0)