Skip to content

Commit

Permalink
fix: edit cube category without renaming (#344)
Browse files Browse the repository at this point in the history
* Cube name validation error when editing Cube, fixed.

* Deleted a console.log()
  • Loading branch information
davideperez authored Sep 23, 2024
1 parent 92f34d9 commit 67909d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function DialogEditCollection() {
const handleSubmitEditCubeCollection = async () => {
try {
// verify if its repeated the name
if (cubes?.some((e) => e.name === form.name)) {
if (cube?.name !== form.name && cubes?.some((e) => e.name === form.name)) {
setError((prev) => ({
...prev,
status: true,
Expand Down

0 comments on commit 67909d1

Please sign in to comment.