Skip to content

Commit

Permalink
Merge pull request #1536 from Vayras/bluprintADD
Browse files Browse the repository at this point in the history
Add Type modal fix
  • Loading branch information
Rassl authored May 27, 2024
2 parents 6cdbadf + cb7d499 commit f865ef3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Toolbar = ({ onCreateNew }: Props) => (
<IconWrapper>
<AddContentIcon />
</IconWrapper>
<Text>Add Item</Text>
<Text>Add Type</Text>
</ActionButton>
</Wrapper>
)
Expand Down
7 changes: 6 additions & 1 deletion src/components/ModalsContainer/BlueprintModal/Body/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ export const Body = () => {
<>
<Flex align="stretch" direction="row" grow={1}>
<Flex ml={-20} my={-20}>
<Toolbar onCreateNew={() => setIsCreateNew(true)} />
<Toolbar
onCreateNew={() => {
setIsCreateNew(true)
setSelectedSchemaId('')
}}
/>
</Flex>
<Flex>
{selectedSchema || isCreateNew ? (
Expand Down

0 comments on commit f865ef3

Please sign in to comment.