Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2931256

Browse files
committed
fix: format
1 parent1976720 commit2931256

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

‎site/src/components/MultiSelectCombobox/MultiSelectCombobox.tsx‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,12 @@ export const MultiSelectCombobox = forwardRef<
205205
const[isLoading,setIsLoading]=useState(false);
206206
constdropdownRef=useRef<HTMLDivElement>(null);
207207

208-
const[selected,setSelected]=useState<Option[]>(
209-
()=>{
210-
if(arrayDefaultOptions&&arrayDefaultOptions.length>0){
211-
returnarrayDefaultOptions;
212-
}
213-
return[];
208+
const[selected,setSelected]=useState<Option[]>(()=>{
209+
if(arrayDefaultOptions&&arrayDefaultOptions.length>0){
210+
returnarrayDefaultOptions;
214211
}
215-
);
212+
return[];
213+
});
216214
const[options,setOptions]=useState<GroupOption>(
217215
transitionToGroupOption(arrayDefaultOptions,groupBy),
218216
);

‎site/src/pages/CreateWorkspacePage/CreateWorkspacePageViewExperimental.tsx‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ export const CreateWorkspacePageViewExperimental: FC<
209209
parameters,
210210
]);
211211

212-
const[debouncedTimer,setDebouncedTimer]=useState<ReturnType<typeofsetTimeout>|null>(
213-
null,
214-
);
212+
const[debouncedTimer,setDebouncedTimer]=useState<ReturnType<
213+
typeofsetTimeout
214+
>|null>(null);
215215

216216
consthandleChange=async(
217217
value:string,
@@ -226,9 +226,11 @@ export const CreateWorkspacePageViewExperimental: FC<
226226

227227
// Create the request object
228228
constcreateRequest=()=>{
229-
constnewInputs=Object.fromEntries(form.values.rich_parameter_values?.map(value=>{
230-
return[value.name,value.value]
231-
})??[]);
229+
constnewInputs=Object.fromEntries(
230+
form.values.rich_parameter_values?.map((value)=>{
231+
return[value.name,value.value];
232+
})??[],
233+
);
232234
// Update the input for the changed parameter
233235
newInputs[parameter.name]=value;
234236

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp