🐛 Fixing array error
This commit is contained in:
parent
7a64c9cf2e
commit
7c892d0da1
@ -281,6 +281,7 @@ class CreateFolderClass extends BasePage<IPropsClass, IState> {
|
|||||||
if (!newOfficeFolder) return;
|
if (!newOfficeFolder) return;
|
||||||
this.props.router.push(`/folders/${newOfficeFolder.uid}`);
|
this.props.router.push(`/folders/${newOfficeFolder.uid}`);
|
||||||
} catch (backError: any) {
|
} catch (backError: any) {
|
||||||
|
if(!Array.isArray(backError)) return;
|
||||||
this.setState({
|
this.setState({
|
||||||
validationError: backError as ValidationError[],
|
validationError: backError as ValidationError[],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user