Skip to content

[Bug Report] undefined injectedGlobalOptions #182

@FirstSanny

Description

@FirstSanny

Bug 描述 Bug description

In the usePagination function we are running into the problem that injectedGlobalOptions are undefined in this line
pagination: (_injectedGlobalOption = injectedGlobalOptions.pagination) !== null && _injectedGlobalOption !== void 0 ? _injectedGlobalOption : {}
When just replacing injectedGlobalOptions.pagination with injectedGlobalOptions?.pagination it works.

代码重现 Reproduce

I honestly dont know how to reproduce it.

期望结果 Desired result

No undefined error and breaking the code.

其他信息 Other information

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions