fix(starred): demoted user wont get error when listing modules
This commit is contained in:
parent
909fb368ce
commit
866d301410
|
@ -33,9 +33,11 @@ export default class Controller extends Component {
|
|||
if (!res.data.length) return;
|
||||
|
||||
for (let starredModule of res.data) {
|
||||
const module = this.modules.find(mod => mod.name === starredModule.moduleFk);
|
||||
module.starred = true;
|
||||
module.position = starredModule.position;
|
||||
try {
|
||||
const module = this.modules.find(mod => mod.name === starredModule.moduleFk);
|
||||
module.starred = true;
|
||||
module.position = starredModule.position;
|
||||
} catch (error) {}
|
||||
}
|
||||
this.countModules();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue