Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
BigJk committed Aug 18, 2024
1 parent 36d1fa7 commit 2c4b65e
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions frontend/src/js/ui/views/template/create-entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,7 @@ import { buildId } from 'js/types/basic-info';
import Entry from 'js/types/entry';
import Template from 'js/types/template';
import * as API from 'js/core/api';
import {
buildSchema,
initialData,
objectPathToSchema,
readableName,
SchemaNode,
SchemaRoot,
getInputTypeByElemType,
} from "js/core/schema";
import { buildSchema, getInputTypeByElemType, initialData, objectPathToSchema, readableName, SchemaNode, SchemaRoot } from 'js/core/schema';

import IconButton from 'js/ui/shoelace/icon-button';
import Input from 'js/ui/shoelace/input';
Expand Down Expand Up @@ -133,10 +125,16 @@ export default (): m.Component<CreateTemplateEntityProps> => {
'div.pa3',
(() => {
if (node.elemType !== 'object') {
return renderObject(obj, [...path, i.toString()], {...node, type: node.elemType, inputType: getInputTypeByElemType(node.elemType), readableName: undefined, key: '' });
return renderObject(obj, [...path, i.toString()], {
...node,
type: node.elemType,
inputType: getInputTypeByElemType(node.elemType),
readableName: undefined,
key: '',
});
}

return Object.keys(e).map((k) => renderObject(obj, [...path, i.toString(), k]))
return Object.keys(e).map((k) => renderObject(obj, [...path, i.toString(), k]));
})(),
),
]),
Expand Down

0 comments on commit 2c4b65e

Please sign in to comment.