mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fix app loading issue
This commit is contained in:
commit
28b4d52d23
@ -92,7 +92,6 @@ class AppDetailsDrawer extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
this.getCategories();
|
||||
this.getTags();
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState, snapshot) {
|
||||
@ -117,7 +116,7 @@ class AppDetailsDrawer extends React.Component {
|
||||
).then(res => {
|
||||
if (res.status === 200) {
|
||||
const categories = JSON.parse(res.data.data);
|
||||
|
||||
this.getTags();
|
||||
const globalCategories = categories.map(category => {
|
||||
return (
|
||||
<Option
|
||||
|
||||
@ -75,8 +75,6 @@ class FiltersForm extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
this.getCategories();
|
||||
this.getTags();
|
||||
this.getDeviceTypes();
|
||||
}
|
||||
|
||||
getCategories = () => {
|
||||
@ -86,6 +84,7 @@ class FiltersForm extends React.Component {
|
||||
).then(res => {
|
||||
if (res.status === 200) {
|
||||
let categories = JSON.parse(res.data.data);
|
||||
this.getTags();
|
||||
this.setState({
|
||||
categories: categories,
|
||||
loading: false
|
||||
@ -116,6 +115,7 @@ class FiltersForm extends React.Component {
|
||||
).then(res => {
|
||||
if (res.status === 200) {
|
||||
let tags = JSON.parse(res.data.data);
|
||||
this.getDeviceTypes();
|
||||
this.setState({
|
||||
tags: tags,
|
||||
loading: false,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user