Skip to content

Commit 2af0120

Browse files
committed
Freeze QuestionType object
1 parent 822f321 commit 2af0120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/models/QuestionModel.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// Global data store
88

9-
export const QuestionType = {
9+
export const QuestionType = Object.freeze({
1010
Dropdown: 'FlowFormDropdownType',
1111
Email: 'FlowFormEmailType',
1212
LongText: 'FlowFormLongTextType',
@@ -17,13 +17,13 @@ export const QuestionType = {
1717
SectionBreak: 'FlowFormSectionBreakType',
1818
Text: 'FlowFormTextType',
1919
Url: 'FlowFormUrlType'
20-
}
20+
})
2121

22-
export const DropdownOptionBlank = {
22+
export const DropdownOptionBlank = Object.freeze({
2323
label: '',
2424
value: '',
2525
disabled: true
26-
}
26+
})
2727

2828
export class ChoiceOption {
2929
constructor(options) {

0 commit comments

Comments
 (0)