Skip to content

Commit

Permalink
chore: update ngx-formly to the version 6.3.3
Browse files Browse the repository at this point in the history
* Updates ngx-formly to the version 6.3.3
* Removes patch for required field.

Co-Authored-by: Bertrand Zuchuat <[email protected]>
  • Loading branch information
Garfield-fr committed Jun 5, 2024
1 parent 9318476 commit e13c5c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions projects/rero/ng-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"@angular/common": "^17.1.0",
"@angular/core": "^17.1.0",
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
"@ngx-formly/primeng": "^6.2.2",
"@ngx-formly/core": "^6.2.2",
"@ngx-formly/primeng": "^6.3.3",
"@ngx-formly/core": "^6.3.3",
"@ngx-translate/core": "^15.0.0",
"crypto-js": "^4.2.0",
"font-awesome": "^4.7.0",
Expand Down
6 changes: 0 additions & 6 deletions projects/rero/ng-core/src/lib/record/editor/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ export class NgCoreFormlyExtension {
* @param field - FormlyFieldConfig
*/
onPopulate(field: FormlyFieldConfig): void {
// TODO: Patch for type array
// String fields in an array parent are automatically required.
// This should not be the case, so we change them to not required.
if (field.parent?.type === 'array' && field.props.required) {
field.props.required = false;
}
this._setWrappers(field);
this._hideEmptyField(field);
const expressions = field?.expressions;
Expand Down

0 comments on commit e13c5c7

Please sign in to comment.