fix(starred-module): only available modules can be marked as starred now
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a881e4d179
commit
b2a87644c2
|
@ -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);
|
||||
const module = this.modules.find(mod => mod.name === starredModule.moduleFk);
|
||||
if (module) {
|
||||
module.starred = true;
|
||||
module.position = starredModule.position;
|
||||
} catch (error) {}
|
||||
}
|
||||
}
|
||||
this.countModules();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue