mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix: use ChannelMessageActionName[] type in listActions
Fixes TS2322 where string[] was not assignable to the expected ChannelMessageActionName[] return type.
This commit is contained in:
committed by
Muhammed Mukhthar CM
parent
5b69954070
commit
1d7c05fe67
@@ -46,7 +46,7 @@ const mattermostMessageActions: ChannelMessageActionAdapter = {
|
||||
.filter((account) => account.enabled)
|
||||
.filter((account) => Boolean(account.botToken?.trim() && account.baseUrl?.trim()));
|
||||
|
||||
const actions: string[] = [];
|
||||
const actions: ChannelMessageActionName[] = [];
|
||||
|
||||
// Send (buttons) is available whenever there's at least one enabled account
|
||||
if (enabledAccounts.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user