Skip to content

Commit 8f47cab

Browse files
committed
Update ToolsManager.ts
1 parent 8d86284 commit 8f47cab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/tools/ToolsManager.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,14 @@ export default class ToolsManager {
149149

150150
const tool = this.#factory.get(toolName);
151151

152-
if ('isInline' in tool && tool.isInline()) {
152+
if ('isInline' in tool && tool.isInline() === true) {
153153
/**
154154
* Some Tools validation
155155
*/
156156
const inlineToolRequiredMethods = ['render'];
157157
const notImplementedMethods = inlineToolRequiredMethods.filter(method => tool.create()[method as keyof InlineTool] !== undefined);
158158

159-
if (notImplementedMethods.length) {
159+
if (notImplementedMethods.length > 0) {
160160
/**
161161
* @todo implement logger
162162
*/

0 commit comments

Comments
 (0)