Skip to content

Commit

Permalink
[RHOAIENG-4702] reset duplicate name warning for pipeline and version…
Browse files Browse the repository at this point in the history
… upload modals (#3035)
  • Loading branch information
jpuzz0 authored Jul 26, 2024
1 parent d0de08d commit fe8326d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const PipelineImportModal: React.FC<PipelineImportModalProps> = ({ isOpen, onClo
setImporting(false);
setError(undefined);
resetData();
setHasDuplicateName(false);
},
[onClose, resetData],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const PipelineVersionImportModal: React.FC<PipelineVersionImportModalProps> = ({
setImporting(false);
setError(undefined);
resetData();
setHasDuplicateName(false);
};

const checkForDuplicateName = useDebounceCallback(
Expand Down

0 comments on commit fe8326d

Please sign in to comment.