Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit 013312f

Browse files
Refine types for StringChoiceWidget
1 parent 4a86323 commit 013312f

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99

1010
### Changed
1111

12-
- remove `required` from `StringChoiceWidget`
1312
- non-optional 'default' for `StringChoiceWidget`
1413

1514
## [6.0.1] 2023-05-09

__tests__/factories.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export const getStringChoiceWidgetConfiguration = () => {
140140
},
141141
values: ['grib', 'netcdf']
142142
},
143+
required: true,
143144
help: null,
144145
label: 'Format',
145146
name: 'format',

src/widgets/StringChoiceWidget.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export interface StringChoiceWidgetConfiguration {
3737
name: string
3838
label: string
3939
help?: string | null
40+
required: boolean
4041
details: StringChoiceWidgetDetails
4142
}
4243

0 commit comments

Comments
 (0)