ordering-ui-admin-external 1.43.24 → 1.43.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -112,16 +112,18 @@ export const MultiSelect = (props) => {
112
112
  <React.Fragment key={selectedOption.value}>
113
113
  <MultiSelectOption>
114
114
  {selectedOption.showOnSelected || selectedOption.content}
115
- <Button
116
- circle
117
- outline
118
- color='primary'
119
- type='reset'
120
- className='remove_option'
121
- onClick={() => onChange && onChange(selectedOption.value)}
122
- >
123
- <MdClose />
124
- </Button>
115
+ {selectedOption?.value !== 'default' && (
116
+ <Button
117
+ circle
118
+ outline
119
+ color='primary'
120
+ type='reset'
121
+ className='remove_option'
122
+ onClick={() => onChange && onChange(selectedOption.value)}
123
+ >
124
+ <MdClose />
125
+ </Button>
126
+ )}
125
127
  </MultiSelectOption>
126
128
  </React.Fragment>
127
129
  ))}