mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:10:44 +00:00
fix(channels): tolerate sparse channel metadata during validation
This commit is contained in:
@@ -10,7 +10,7 @@ import type { PluginDiagnostic } from "./manifest-types.js";
|
||||
import { pushPluginValidationDiagnostic } from "./validation-diagnostics.js";
|
||||
|
||||
function resolveBundledChannelMeta(id: string): ChannelMeta | undefined {
|
||||
return listChatChannels().find((meta) => meta.id === id);
|
||||
return listChatChannels().find((meta) => meta?.id === id);
|
||||
}
|
||||
|
||||
function collectMissingChannelMetaFields(meta?: Partial<ChannelMeta> | null): string[] {
|
||||
|
||||
Reference in New Issue
Block a user