Skip to content

Commit

Permalink
remove extra conditional from duplicate title check
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomThomson committed Sep 28, 2022
1 parent 1d93a4d commit 1fc1f55
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,11 @@ export function DashboardTopNav({
}

if (
newCopyOnSave &&
!(await checkForDuplicateDashboardTitle({
title: newTitle,
onTitleDuplicate,
lastSavedTitle: currentState.title,
copyOnSave: true,
copyOnSave: newCopyOnSave,
isTitleDuplicateConfirmed,
}))
) {
Expand Down

0 comments on commit 1fc1f55

Please sign in to comment.