Skip to content

Commit

Permalink
fix(generator): turn off the required validation, the required field …
Browse files Browse the repository at this point in the history
…is not properly deleted (#216)
  • Loading branch information
mengshang918 committed Jun 10, 2022
1 parent 3ac1ab9 commit fcd64c4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @Author: jiangxiaowei
* @Date: 2021-08-16 11:32:22
* @Last Modified by: jiangxiaowei
* @Last Modified time: 2022-05-27 13:54:52
* @Last Modified time: 2022-06-10 13:39:58
*/
import React, { useMemo, memo, useCallback } from 'react'
import {
Expand Down Expand Up @@ -444,7 +444,7 @@ const CheckConfig = (): JSX.Element => {
['errorMessage', 'required', requiredKey],
draft as Map
)
if (index) {
if (index != -1) {
deleteDeepProp(['required', String(index)], draft as Map)
}
})
Expand Down

0 comments on commit fcd64c4

Please sign in to comment.