diff --git a/CHANGELOG.md b/CHANGELOG.md index a69c72e25e..37e8bf0f41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ ### Server - リモートユーザーのチャート生成を無効にするオプションを追加 +- 空のアンテナが作成できるのを修正 ## 13.10.2 diff --git a/packages/backend/src/server/api/endpoints/antennas/create.ts b/packages/backend/src/server/api/endpoints/antennas/create.ts index d147ddb7f1..9ee311ace9 100644 --- a/packages/backend/src/server/api/endpoints/antennas/create.ts +++ b/packages/backend/src/server/api/endpoints/antennas/create.ts @@ -79,7 +79,7 @@ export default class extends Endpoint { private globalEventService: GlobalEventService, ) { super(meta, paramDef, async (ps, me) => { - if (ps.keywords.length === 0) { + if ((ps.keywords.length === 0) || (ps.keywords[0].filter(x => x !== '').length === 0)) { throw new Error('invalid param'); }