fix working files
This commit is contained in:
parent
ff822aaf81
commit
b3c8a04b71
@ -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>
|
||||
|
||||
@ -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],
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user