Skip to content

Commit

Permalink
remove testing logs
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <88173870+Thistleman@users.noreply.github.com>
  • Loading branch information
Thistleman committed May 2, 2024
1 parent 36d7216 commit 746032e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/containers/pipelines/add-pipeline/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const AddPipelineForm = styled.form`
`;

const AddPipeline = ({ handleSuccess, handleCancel }) => {
console.log("AddPipeline", handleSuccess, handleCancel)
const [fields, setFields] = useState({
name: '',
description: '',
Expand All @@ -41,7 +40,6 @@ const AddPipeline = ({ handleSuccess, handleCancel }) => {
const currentOrg = useSelector((state) => state.user.currentOrg);

useEffect(() => {
console.log("useEffect triggered", formSubmitted, errors, currentOrg, fields, handleSuccess, loading);
if (formSubmitted && !errors.length && !loading) {
setLoading(true);
setFormSubmitted(false);
Expand All @@ -60,14 +58,12 @@ const AddPipeline = ({ handleSuccess, handleCancel }) => {

const updateFromDropdown = (e) => {
// pass into dropdown to send data back and fill
console.log("updateFromDropdown input", e);
const url = {
url: e.target.dataset.url,
name: e.target.dataset.fullname,
description: e.target.dataset.description,
};
const name = url.name.charAt(0).toUpperCase() + url.name.slice(1);
console.log("updateFromDropdown", name);
gitApi.getManifest(url.url)
.then((response) => {
setLoadManifest('none');
Expand Down
3 changes: 1 addition & 2 deletions src/containers/pipelines/pipeline-dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,11 @@ const PipelineDropdown = (updateFromDropdown) => {
useEffect(() => {
gitApi.getPotentialPipelines()
.then((response) => {
console.log('response', response);
if (response !== 'undefined') {
setPipelines(response);
}
}, (error) => {
console.log("why", error);
console.log("Error Retrieving Pipelines:", error);
});
}, [updateFromDropdown]);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const StartRunPopup = ({
setManual(Object.keys(response.manual));
}
}, (error) => {
console.log(error);
console.log('Failed to retrieve manifest:', error);
});
}, [configUrl, pipelineBranch]);

Expand Down

0 comments on commit 746032e

Please sign in to comment.