mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Fix lint errors
This commit is contained in:
parent
8e5364b54d
commit
f30fd3e812
@ -135,13 +135,13 @@ const ModalForm = ({ onMetaChange, onSizeChange }) => {
|
||||
<Select
|
||||
value={get(fieldForm, ['metadata', 'step'], 1)}
|
||||
name="step"
|
||||
onChange={value => onMetaChange({ target: { name: 'step', value } })}
|
||||
onChange={(value) => onMetaChange({ target: { name: 'step', value } })}
|
||||
label={formatMessage({
|
||||
id: getTrad('containers.SettingPage.editSettings.step.label'),
|
||||
defaultMessage: 'Step',
|
||||
})}
|
||||
>
|
||||
{TIME_FIELD_OPTIONS.map(value => (
|
||||
{TIME_FIELD_OPTIONS.map((value) => (
|
||||
<Option key={value} value={value}>
|
||||
{value}
|
||||
</Option>
|
||||
|
||||
@ -60,7 +60,7 @@ const createMetadasSchema = (schema) => {
|
||||
.test(
|
||||
'isDivisibleBy60',
|
||||
'Step must be divisible by 60',
|
||||
value => !value || value === 1 || (value * 24) % 60 === 0
|
||||
(value) => !value || value === 1 || (value * 24) % 60 === 0
|
||||
),
|
||||
})
|
||||
.noUnknown()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user