This commit is contained in:
@@ -100,8 +100,7 @@ export function BuildManagementPage() {
|
||||
setSelectedComponentId((prev) => {
|
||||
const valid = filteredSources.some((source) => source.id === prev);
|
||||
const next = valid ? prev : filteredSources[0]?.id || '';
|
||||
const nextSource = filteredSources.find((source) => source.id === next);
|
||||
setBranch(nextSource?.branch || 'develop');
|
||||
setBranch('develop');
|
||||
return next;
|
||||
});
|
||||
} finally {
|
||||
@@ -137,7 +136,7 @@ export function BuildManagementPage() {
|
||||
if (!componentOptions.some((source) => source.id === selectedComponentId)) {
|
||||
const nextComponent = componentOptions[0];
|
||||
setSelectedComponentId(nextComponent?.id || '');
|
||||
setBranch(nextComponent?.branch || 'develop');
|
||||
setBranch('develop');
|
||||
}
|
||||
}, [componentOptions, selectedComponentId]);
|
||||
|
||||
@@ -225,9 +224,8 @@ export function BuildManagementPage() {
|
||||
className="mt-2 h-9 w-full rounded-md border border-input bg-background px-3 text-sm text-foreground outline-none focus:ring-2 focus:ring-ring"
|
||||
value={selectedComponent?.id ?? ''}
|
||||
onChange={(event) => {
|
||||
const next = componentOptions.find((source) => source.id === event.target.value);
|
||||
setSelectedComponentId(event.target.value);
|
||||
setBranch(next?.branch || 'develop');
|
||||
setBranch('develop');
|
||||
}}
|
||||
>
|
||||
{componentOptions.length === 0 ? <option value="">구성요소 없음</option> : null}
|
||||
@@ -242,8 +240,6 @@ export function BuildManagementPage() {
|
||||
onChange={(event) => setBranch(event.target.value)}
|
||||
>
|
||||
<option value="develop">develop</option>
|
||||
<option value="release">release</option>
|
||||
<option value="main">main</option>
|
||||
</select>
|
||||
</label>
|
||||
<label className="block md:col-span-2">
|
||||
|
||||
Reference in New Issue
Block a user