Commit 8ab729d7 authored by Afid's avatar Afid

ubah sedikit

parent 0ee7c8a8
...@@ -38,7 +38,6 @@ class MenuSelection extends React.Component { ...@@ -38,7 +38,6 @@ class MenuSelection extends React.Component {
indicator: true indicator: true
}) })
this._getPermissions() this._getPermissions()
this.getMenuList()
} }
// console.log("INI OUTLET : "+ this.props.outlet_id) // console.log("INI OUTLET : "+ this.props.outlet_id)
this._unsubscribe = this.props.navigation.addListener('focus', () => { this._unsubscribe = this.props.navigation.addListener('focus', () => {
...@@ -49,7 +48,6 @@ class MenuSelection extends React.Component { ...@@ -49,7 +48,6 @@ class MenuSelection extends React.Component {
indicator: true indicator: true
}) })
this._getPermissions() this._getPermissions()
this.getMenuList()
} }
}); });
} }
...@@ -111,6 +109,7 @@ class MenuSelection extends React.Component { ...@@ -111,6 +109,7 @@ class MenuSelection extends React.Component {
indicator: false indicator: false
}) })
this.getMenuList()
}).catch(error => { }).catch(error => {
const { navigation } = this.props const { navigation } = this.props
let response = error.response.data let response = error.response.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment