Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of null (reading 'props') #271

Open
fengxinming opened this issue Mar 6, 2023 · 1 comment
Open

TypeError: Cannot read properties of null (reading 'props') #271

fengxinming opened this issue Mar 6, 2023 · 1 comment

Comments

@fengxinming
Copy link

child is uniformly converted into null.

return Children.map(children as ReactElement<any>[], (child, index) => {
      if (child === undefined) return undefined;

      const item = list[index] || {};
      const { className: prevClassName } = child.props;

      // @todo - handle the function if avalable. I don't think anyone will be doing this soon.
      const filtered = typeof filter === "string" && {
        [filter.replace(".", "")]: !!item.filtered,
      };
@nolikob
Copy link

nolikob commented Oct 18, 2023

is there any workaround for this? I would really appreciate it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants