Skip to content

Commit

Permalink
Fix removeCategory
Browse files Browse the repository at this point in the history
Signed-off-by: SimonShiki <[email protected]>
  • Loading branch information
SimonShiki committed Aug 27, 2022
1 parent 978b710 commit 6b21807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension-support/extension-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ class ExtensionAPI {

removeCategory (categoryId) {
// 阻止卸载不存在 category
if (!this._getCategory(category.categoryId)) {
if (!this._getCategory(categoryId)) {
console.warn('reject to add category twice');
return;
}
Expand Down

0 comments on commit 6b21807

Please sign in to comment.