Skip to content

Commit

Permalink
Merge pull request #1258 from stakwork/bugfix/fix-type-parent
Browse files Browse the repository at this point in the history
feat: add type instead of parent for edit schema
  • Loading branch information
Rassl authored Apr 16, 2024
2 parents 9d1c942 + 8cf6c66 commit 7b53fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AddTypeModal/Body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const Body = ({ onSchemaCreate, selectedSchema, onDelete }: Props) => {
</Flex>
)}
</Flex>
<CreateCustomNodeAttribute parent={parent} />
<CreateCustomNodeAttribute parent={selectedSchema ? selectedSchema.type : parent} />
<Flex direction="row" justify="space-between" mt={20}>
{selectedSchema ? (
<DeleteButton
Expand Down

0 comments on commit 7b53fae

Please sign in to comment.