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