fix(channels): tolerate sparse channel metadata during validation · openclaw/openclaw@80219ed
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import type { PluginDiagnostic } from "./manifest-types.js";
|
10 | 10 | import { pushPluginValidationDiagnostic } from "./validation-diagnostics.js"; |
11 | 11 | |
12 | 12 | function resolveBundledChannelMeta(id: string): ChannelMeta | undefined { |
13 | | -return listChatChannels().find((meta) => meta.id === id); |
| 13 | +return listChatChannels().find((meta) => meta?.id === id); |
14 | 14 | } |
15 | 15 | |
16 | 16 | function collectMissingChannelMetaFields(meta?: Partial<ChannelMeta> | null): string[] { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。