Skip to content

Commit

Permalink
remove console.logs
Browse files Browse the repository at this point in the history
RODO94 committed Jan 28, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 792555d commit 62a9eaa
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 5 additions & 6 deletions api.planx.uk/modules/flows/publish/service/applicationTypes.ts
Original file line number Diff line number Diff line change
@@ -32,13 +32,12 @@ export const getApplicationTypeVals = (flowGraph: FlowGraph): string[] => {

const answerVals: string[] = [];
nodesWithApplicationType.forEach((node) => {
console.log(flowGraph[node]);
if (flowGraph[node].edges) {
flowGraph[node].edges.forEach((edge) => {
console.log();
typeof flowGraph[edge]?.data?.val === "string" &&
answerVals.push(flowGraph[edge]?.data?.val);
});
flowGraph[node].edges.forEach(
(edge) =>
typeof flowGraph[edge]?.data?.val === "string" &&
answerVals.push(flowGraph[edge]?.data?.val),
);
}
if (typeof flowGraph[node]?.data?.val === "string") {
answerVals.push(flowGraph[node]?.data?.val);
Original file line number Diff line number Diff line change
@@ -52,8 +52,6 @@ export const PublishFlowButton: React.FC<{ previewURL: string }> = ({
try {
setLastPublishedTitle("Checking for changes...");
const alteredFlow = await validateAndDiffFlow(flowId);
console.log(alteredFlow);

setAlteredNodes(
alteredFlow?.data.alteredNodes ? alteredFlow.data.alteredNodes : [],
);

0 comments on commit 62a9eaa

Please sign in to comment.