mirror of
https://github.com/strapi/strapi.git
synced 2025-12-24 21:54:24 +00:00
Remove unnecessary getStep for datetime/time condition
This commit is contained in:
parent
612112e499
commit
8e5364b54d
@ -3,10 +3,6 @@ const getStep = (type) => {
|
||||
|
||||
if (type === 'float' || type === 'decimal') {
|
||||
step = 0.01;
|
||||
} else if (type === 'time' || type === 'datetime') {
|
||||
// Since we cannot set a value that is not in the list of the time picker, we need to set the step to 1
|
||||
// TODO: Fix the timepicker in order to be able to set any value regardless of the list
|
||||
step = 1;
|
||||
} else {
|
||||
step = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user