Fix input display

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-12-21 14:20:03 +01:00
parent 46ac2782f1
commit c85eb46a43
2 changed files with 9 additions and 1 deletions

View File

@ -115,6 +115,14 @@ const InputUID = ({
}
};
// FIXME: we need to find a better way to autofill the input when it is required.
// useEffect(() => {
// if (!value && validations.required) {
// generateUid.current(true);
// }
// // eslint-disable-next-line react-hooks/exhaustive-deps
// }, []);
useEffect(() => {
if (
debouncedValue &&

View File

@ -118,7 +118,7 @@ function ListView({
const [isFilterPickerOpen, setFilterPickerState] = useState(false);
const [idToDelete, setIdToDelete] = useState(null);
const contentType = layout.contentType;
const hasDraftAndPublish = contentType.options.draftAndPublish || false;
const hasDraftAndPublish = get(contentType, 'options.draftAndPublish', false);
const allAllowedHeaders = useMemo(() => getAllAllowedHeaders(attributes), [attributes]);
const filters = useMemo(() => {