sort documentTypes by label
This commit is contained in:
parent
a9b25ce9e1
commit
ecaa7f2801
@ -40,6 +40,7 @@ export default function ParameterDocuments(props: IProps) {
|
||||
value: document.uid,
|
||||
};
|
||||
});
|
||||
formattedOptions.sort((a, b) => a.label > b.label? 1 : -1);
|
||||
setFormattedOptions(formattedOptions);
|
||||
}, [props.folder.deed?.document_types]);
|
||||
|
||||
|
@ -161,6 +161,8 @@ class AskDocumentsClass extends BasePage<IPropsClass, IState> {
|
||||
};
|
||||
});
|
||||
|
||||
documentTypesOptions.sort((a, b) => a.label > b.label ? 1 : -1);
|
||||
|
||||
return documentTypesOptions;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user