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

fix(generator): fix error where value in order is not in category #187

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

mengshang918
Copy link
Collaborator

Motivation

修复generator中自定义组件区,order中的值不在cateogory中导致报错的问题

  • 报错例子

    components={{
           order: ['a', 'antd'],
           category: {
             a: {
               title: 'a',
               order: [],
               fields: {},
             },
           },
         }}
    
  • 修复后,会自动过滤order中的antd

Have you read the Contributing Guidelines on pull requests?

Y

Test Plan

N

Related PRs

N

@mengshang918 mengshang918 self-assigned this Apr 6, 2022
@mengshang918 mengshang918 added the bug Something isn't working label Apr 6, 2022
@mengshang918 mengshang918 added this to the v0.8.0 milestone Apr 6, 2022
@mengshang918 mengshang918 merged commit a5290f8 into dev Apr 6, 2022
@mengshang918 mengshang918 deleted the fix/filterTheme branch April 6, 2022 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant