mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: prettier format
This commit is contained in:
@@ -625,10 +625,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
let options: OptionType[] = [];
|
||||
|
||||
if (isResponseSuccess(locations)) {
|
||||
const locationOptionsList = locations?.data.map((location) => ({
|
||||
value: location.id,
|
||||
label: location.name || '',
|
||||
})) || [];
|
||||
const locationOptionsList =
|
||||
locations?.data.map((location) => ({
|
||||
value: location.id,
|
||||
label: location.name || '',
|
||||
})) || [];
|
||||
options = options.concat(locationOptionsList);
|
||||
}
|
||||
|
||||
@@ -652,10 +653,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
let options: OptionType[] = [];
|
||||
|
||||
if (isResponseSuccess(projectFlocks)) {
|
||||
const flockOptions = projectFlocks?.data.map((projectFlock) => ({
|
||||
value: projectFlock.id,
|
||||
label: projectFlock.flock_name || '',
|
||||
})) || [];
|
||||
const flockOptions =
|
||||
projectFlocks?.data.map((projectFlock) => ({
|
||||
value: projectFlock.id,
|
||||
label: projectFlock.flock_name || '',
|
||||
})) || [];
|
||||
options = options.concat(flockOptions);
|
||||
}
|
||||
|
||||
@@ -684,10 +686,12 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
);
|
||||
|
||||
if (selectedProjectFlockData?.kandangs) {
|
||||
const kandangOptions = selectedProjectFlockData.kandangs.map((kandang: Kandang) => ({
|
||||
value: kandang.id,
|
||||
label: kandang.name || '',
|
||||
}));
|
||||
const kandangOptions = selectedProjectFlockData.kandangs.map(
|
||||
(kandang: Kandang) => ({
|
||||
value: kandang.id,
|
||||
label: kandang.name || '',
|
||||
})
|
||||
);
|
||||
options = options.concat(kandangOptions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user