fix(starred-module): only available modules can be marked as starred now
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2021-10-20 12:07:07 +02:00
parent a881e4d179
commit b2a87644c2
1 changed files with 3 additions and 3 deletions

View File

@ -33,11 +33,11 @@ export default class Controller extends Component {
if (!res.data.length) return;
for (let starredModule of res.data) {
try {
const module = this.modules.find(mod => mod.name === starredModule.moduleFk);
if (module) {
module.starred = true;
module.position = starredModule.position;
} catch (error) {}
}
}
this.countModules();
});