mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
make edit and add schema order consistent
This commit is contained in:
@@ -153,9 +153,7 @@
|
||||
viewJsonSchema = false
|
||||
try {
|
||||
schema = resourceTypeInfo.schema as any
|
||||
|
||||
schema.order = schema.order ?? Object.keys(schema.properties).sort()
|
||||
|
||||
notFound = false
|
||||
} catch (e) {
|
||||
notFound = true
|
||||
|
||||
@@ -118,6 +118,8 @@
|
||||
resourceTypeInfo = resourceType
|
||||
if (resourceType.schema) {
|
||||
resourceSchema = resourceType.schema as Schema
|
||||
resourceSchema.order =
|
||||
resourceSchema.order ?? Object.keys(resourceSchema.properties).sort()
|
||||
}
|
||||
if (resourceTypeInfo?.format_extension) {
|
||||
textFileContent = args.content
|
||||
@@ -237,7 +239,7 @@
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<div class="text-sm">
|
||||
<div>
|
||||
{#if loadingSchema}
|
||||
<Skeleton layout={[[4]]} />
|
||||
{:else if !viewJsonSchema && resourceSchema && resourceSchema?.properties}
|
||||
|
||||
Reference in New Issue
Block a user