- updated dependencies;
- fixed displaying delega; - fixed switching companies; - added toast for profile and company profile; - fixed registration 'deby/allow all' func;
This commit is contained in:
@@ -47,7 +47,6 @@ const FileuploadDelega = ({
|
||||
}
|
||||
|
||||
const itemTemplate = (file) => {
|
||||
console.log('file', file)
|
||||
return (
|
||||
<div className="appForm__fileUploadItem">
|
||||
<div>
|
||||
@@ -128,8 +127,10 @@ const FileuploadDelega = ({
|
||||
|
||||
useEffect(() => {
|
||||
if (inputRef.current) {
|
||||
inputRef.current.setUploadedFiles(multiple ? defaultValue : [defaultValue]);
|
||||
console.log('inputRef.current', inputRef.current, multiple ? defaultValue : [defaultValue])
|
||||
const properValue = multiple
|
||||
? defaultValue
|
||||
: !isEmpty(defaultValue) ? [defaultValue] : [];
|
||||
inputRef.current.setUploadedFiles(properValue);
|
||||
}
|
||||
}, [defaultValue]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user