fix working files

This commit is contained in:
DaKheera47 2026-01-27 15:12:53 +00:00
parent ff822aaf81
commit b3c8a04b71
3 changed files with 11 additions and 5 deletions

View File

@ -348,7 +348,6 @@ export const OrchestratorPage: React.FC = () => {
selectedJob={selectedJob}
onSelectJobId={handleSelectJobId}
onJobUpdated={loadJobs}
onSetActiveTab={setActiveTab}
/>
</div>
)}
@ -382,7 +381,6 @@ export const OrchestratorPage: React.FC = () => {
selectedJob={selectedJob}
onSelectJobId={handleSelectJobId}
onJobUpdated={loadJobs}
onSetActiveTab={setActiveTab}
/>
</div>
</DrawerContent>

View File

@ -7,9 +7,9 @@ import {
PIPELINE_SOURCES_STORAGE_KEY,
} from "./constants";
const resolveAllowedSources = (enabledSources?: JobSource[]) =>
const resolveAllowedSources = (enabledSources?: readonly JobSource[]) =>
enabledSources && enabledSources.length > 0
? enabledSources
? (enabledSources as JobSource[])
: DEFAULT_PIPELINE_SOURCES;
const normalizeSources = (
@ -24,7 +24,7 @@ const sourcesMatch = (left: JobSource[], right: JobSource[]) =>
left.length === right.length &&
left.every((value, index) => value === right[index]);
export const usePipelineSources = (enabledSources?: JobSource[]) => {
export const usePipelineSources = (enabledSources?: readonly JobSource[]) => {
const allowedSources = useMemo(
() => resolveAllowedSources(enabledSources),
[enabledSources],

View File

@ -2,6 +2,14 @@ import * as api from "@client/api";
import { RefreshCw } from "lucide-react";
import type React from "react";
import { useCallback, useEffect, useState } from "react";
import { Button } from "@/components/ui/button";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
type BaseResumeSelectionProps = {
value: string | null;