Skip to content

Commit

Permalink
fix: some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Sep 5, 2024
1 parent a1eb23a commit f3e5301
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
13 changes: 0 additions & 13 deletions src/app/api/manager/streams/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ export async function DELETE(
);
}
try {
// ! What is the consequence of this? Cannot see the effect ->
// if (!multiview.multiview_id) {
// throw `The provided multiview settings did not contain any multiview id`;
// }

// await updateMultiviewForPipeline(
// body.pipelineUUID,
// multiview.multiview_id,
// multiview.layout.views
// ).catch((e) => {
// throw `Error when updating multiview: ${e.message}`;

const multiviewUpdates = multiview.map(async (singleMultiview) => {
if (!singleMultiview.multiview_id) {
throw `The provided multiview settings did not contain any multiview id`;
Expand All @@ -94,7 +82,6 @@ export async function DELETE(
});

await Promise.all(multiviewUpdates);
// ! <-

return new NextResponse(
JSON.stringify({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ export function ConfigureOutputModal({
}, [preset]);

const clearInputs = () => {
setMultiviews(
preset.pipelines[0].multiviews ? preset.pipelines[0].multiviews : []
);
setMultiviews(preset.pipelines[0].multiviews || []);
setOutputStreams(defaultState(preset.pipelines));
onClose();
};
Expand Down

0 comments on commit f3e5301

Please sign in to comment.