Skip to content

Commit b69d92d

Browse files
committed
fix: check if plugin exists
1 parent ad3f6ee commit b69d92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export class Docs {
137137
const topLevelTopic = commandParts[0];
138138

139139
const plugin = command.plugin;
140-
if (this.plugins[plugin.name]) {
140+
if (plugin && this.plugins[plugin.name]) {
141141
// Also include the namespace on the commands so we don't need to do the split at other times in the code.
142142
command.topic = topLevelTopic;
143143

0 commit comments

Comments
 (0)