Skip to content

Commit

Permalink
Merge pull request #195 from entrylabs/develop
Browse files Browse the repository at this point in the history
fix: 인공지능 학습블럭 교과형에서 미노출
  • Loading branch information
Tnks2U authored Feb 29, 2024
2 parents f6b102d + 542b558 commit b11e8e2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/renderer/resources/static_mini.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ EntryStatic.categoryProjectOption = [
},
];


EntryStatic.getCategoryByBlock = function(blockName) {
if (!blockName) {
return false;
Expand Down Expand Up @@ -146,6 +145,13 @@ EntryStatic.getAllBlocks = () => {
arduino.blocks.splice(index, 1);
}
});

const aiModelTrainCategory = _.find(allBlocks, ['category', 'ai_utilize']);
aiModelTrainCategory.blocks.forEach((block, index) => {
if (['aiUtilizeModelTrainButton'].indexOf(block) !== -1) {
aiModelTrainCategory.blocks.splice(index, 1);
}
});
return allBlocks;
};

Expand Down

0 comments on commit b11e8e2

Please sign in to comment.