From e48a57c5ce84355f0d886cb8fc85241d388d17c3 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw <82459713+hashishaw@users.noreply.github.com> Date: Mon, 18 Sep 2023 16:28:15 -0500 Subject: [PATCH] UI: Use TTL editType for format=duration from OpenAPI (#23124) --- ui/app/utils/openapi-to-attrs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/utils/openapi-to-attrs.js b/ui/app/utils/openapi-to-attrs.js index ed3b024a8c..7713f3b354 100644 --- a/ui/app/utils/openapi-to-attrs.js +++ b/ui/app/utils/openapi-to-attrs.js @@ -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);