Skip to content

Commit

Permalink
🐛 Fix variable creation when filtered items not empty
Browse files Browse the repository at this point in the history
Closes #1792
  • Loading branch information
baptisteArno committed Sep 16, 2024
1 parent d3fc404 commit 6d350a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ export const VariablesDrawer = ({ onClose }: Props) => {
<SlideFade
in={
isVariableCreated ||
(filteredVariables && filteredVariables.length === 0)
(filteredVariables &&
!filteredVariables.some((v) => v.name === searchValue))
}
unmountOnExit
offsetY={0}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prepare": "husky install",
"docker:up": "docker compose -f docker-compose.dev.yml up -d && node -e \"setTimeout(() => {}, 5000)\"",
"docker:nuke": "docker compose -f docker-compose.dev.yml down --volumes --remove-orphans",
"clean": "git clean -xdf -e '*.env*' -e .DS_Store",
"lint": "turbo run lint",
"dev": "pnpm docker:up && turbo build [email protected]/nextjs... && turbo run dev --filter=builder... --filter=viewer... --parallel --no-cache",
"build": "pnpm docker:up && turbo run build",
Expand Down

0 comments on commit 6d350a9

Please sign in to comment.