Skip to content

Commit

Permalink
fix: output logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Nov 5, 2024
1 parent 7bb493e commit 8d1935e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/app/production/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ export default function ProductionConfiguration({ params }: PageProps) {
const selectedPresetCopy = cloneDeep(selectedPreset);
const foundPipeline = selectedPresetCopy?.pipelines[pipelineIndex];
if (foundPipeline) {
console.log('foundPipeline outputs: ', foundPipeline.outputs);
foundPipeline.outputs = foundPipeline.outputs || [];
foundPipeline.pipeline_name = pipelineName;
foundPipeline.pipeline_id = id;
Expand All @@ -238,6 +239,10 @@ export default function ProductionConfiguration({ params }: PageProps) {
// console.log('setSelectedPipelineName - prevState:', prevState);
const updatedPipelines = prevState?.production_settings.pipelines;
if (!updatedPipelines) return;
console.log(
'prevState outputs: ',
prevState.production_settings.pipelines[pipelineIndex].outputs
);
updatedPipelines[pipelineIndex].pipeline_name = pipelineName;
updatedPipelines[pipelineIndex].pipeline_id = id;
updatedPipelines[pipelineIndex].outputs =
Expand Down
4 changes: 0 additions & 4 deletions src/components/pipeline/PipelineCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export function PipelineCard({ pipelineId, isActive }: PipelineCardProps) {

const SrtInfo = data?.status;

useEffect(() => {
console.log('SrtInfo', SrtInfo);
}, [SrtInfo]);

if (SrtInfo === undefined) {
return null;
}
Expand Down

0 comments on commit 8d1935e

Please sign in to comment.