Skip to content

Commit

Permalink
ui: fixed deleting tags (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelPull authored Oct 18, 2024
1 parent 5452ae3 commit c95ebdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Overview/ProjectDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const handleEdit = (props) => {
const { editProject, onDialogCancel, projectToAdd, projects, storeSnackbarMessage } = props;

const changes = compareObjects(projects, projectToAdd);
const hasChanges = !isEmptyDeep(changes);
const hasChanges = !isEmptyDeep(changes) || Object.hasOwn(changes, "tags");

if (hasChanges) {
editProject(
Expand Down Expand Up @@ -56,7 +56,7 @@ const ProjectDialog = (props) => {
const { projects, projectToAdd, editDialogShown, creationDialogShown } = props;
const { displayName } = projectToAdd;
const changes = compareObjects(projects, projectToAdd);
const hasChanges = !isEmptyDeep(changes);
const hasChanges = !isEmptyDeep(changes) || Object.hasOwn(changes, "tags");

const specificProps = props.editDialogShown
? {
Expand Down

0 comments on commit c95ebdd

Please sign in to comment.