Skip to content

Commit

Permalink
Fix issue where creating a new application twice does not work (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
riodeuno committed Nov 12, 2020
1 parent c615ada commit be1bc0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/client/src/pages/Applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,9 @@ const ApplicationsSection = (props: any) => {
<ApplicationAddCardWrapper
onClick={() => {
if (
Object.entries(creatingApplicationMap).length === 0
Object.entries(creatingApplicationMap).length === 0 ||
(creatingApplicationMap &&
!creatingApplicationMap[organization.id])
) {
createNewApplication(
getNextEntityName(
Expand Down

0 comments on commit be1bc0d

Please sign in to comment.