changes
This commit is contained in:
parent
81061d2e90
commit
bb16e2abd0
@ -114,7 +114,7 @@ const toIsicOption = (item) => {
|
||||
return value ? { label: value, value } : null;
|
||||
}
|
||||
if (typeof item === 'object') {
|
||||
const id = toStringOrNull(item.id ?? item.value ?? item.code);
|
||||
const id = toStringOrNull(item.code ?? item.id ?? item.value);
|
||||
const code = toStringOrNull(item.code);
|
||||
const description = toStringOrNull(item.description ?? item.name ?? item.label);
|
||||
const label = code && description ? `${code} - ${description}` : description ?? code ?? item.label;
|
||||
@ -125,6 +125,7 @@ const toIsicOption = (item) => {
|
||||
return null;
|
||||
};
|
||||
|
||||
|
||||
export const getVariationReasons = async (config = {}) => {
|
||||
const response = await getRequest(endpoints.variationReasons, config);
|
||||
return response.data;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user