Skip to content

Commit

Permalink
Fix renaming QF and BM template (#3447)
Browse files Browse the repository at this point in the history
  • Loading branch information
piedicianni authored Jul 9, 2024
1 parent fdbf5cd commit 0f59bf3
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const SubTemplateMoreMenu = ({portalTarget}) => {
isRequestInProgress,
setIsRequestInProgress,
setTemplateModifier,
templateName,
setTemplateName,
propConnectProjectTemplate,
deleteApi,
Expand Down Expand Up @@ -122,10 +121,8 @@ export const SubTemplateMoreMenu = ({portalTarget}) => {
disabled={isRequestInProgress}
className="settings-panel-templates-button-more"
onMouseUp={() => {
if (templateName) {
setTemplateModifier(SUBTEMPLATE_MODIFIERS.UPDATE)
setTemplateName(currentTemplate.name)
}
setTemplateModifier(SUBTEMPLATE_MODIFIERS.UPDATE)
setTemplateName(currentTemplate.name)
}}
>
<IconEdit />
Expand Down

0 comments on commit 0f59bf3

Please sign in to comment.