You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final response = await client.tags.list(ListTagRequest(perPage: 20));
or
final response = await client.tags.list(ListTagRequest(search: 'apple'));
In both cases above, the following error occurs.
Unhandled exception:
type 'int' is not a subtype of type 'String' of 'value'
#0 _LinkedHashMapMixin.[]= (dart:collection-patch/compact_hash.dart)
#1 MapExtensions.addIfNotNull (package:wordpress_client/src/utilities/extensions/map_extensions.dart:14:9)
#2 ListTagRequest.build (package:wordpress_client/src/requests/list/list_tag.dart:43:9)
#3 ListOperation.list (package:wordpress_client/src/operations/list.dart:8:37)
...
so I edit following two lines in package:wordpress_client/src/requests/list/list_tag.dart, then it works.
final response = await client.tags.list(ListTagRequest(perPage: 20));
or
final response = await client.tags.list(ListTagRequest(search: 'apple'));
In both cases above, the following error occurs.
so I edit following two lines in package:wordpress_client/src/requests/list/list_tag.dart, then it works.
please, check it.
The text was updated successfully, but these errors were encountered: