Skip to content

Commit

Permalink
Fix: 型エラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Nov 23, 2024
1 parent 1796b8c commit edc1ec4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dialog/ModelManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ const installModel = async () => {
});
} else {
// assert characterInfo !== undefined エラーを無視
if (error.message === 'assert characterInfo !== undefined') {
if (error instanceof Error && error.message === 'assert characterInfo !== undefined') {
// インストール成功時の処理を実行
await store.dispatch("LOAD_CHARACTER", { engineId: store.getters.DEFAULT_ENGINE_ID });
await store.dispatch("LOAD_DEFAULT_STYLE_IDS");
Expand Down Expand Up @@ -409,7 +409,7 @@ const unInstallAivmModel = async () => {
});
} else {
// assert characterInfo !== undefined エラーを無視
if (error.message === 'assert characterInfo !== undefined') {
if (error instanceof Error && error.message === 'assert characterInfo !== undefined') {
// アンインストール成功時の処理を実行
await store.dispatch("LOAD_CHARACTER", { engineId: store.getters.DEFAULT_ENGINE_ID });
await store.dispatch("LOAD_DEFAULT_STYLE_IDS");
Expand Down

0 comments on commit edc1ec4

Please sign in to comment.