UI: Use TTL editType for format=duration from OpenAPI (#23124)

This commit is contained in:
Chelsea Shaw 2023-09-18 16:28:15 -05:00 committed by GitHub
parent 5449a99aba
commit e48a57c5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ export const expandOpenApiProps = function (props) {
editType = editType || type;
if (format === 'seconds') {
if (format === 'seconds' || format === 'duration') {
editType = 'ttl';
} else if (items) {
editType = items.type + capitalize(type);