Skip to content

TypeError: word.trim is not a function #37

@git9875

Description

@git9875

.filter((word) => word.trim() !== "")

Should change the line to:
.filter((word) => (typeof word == "string") && (word.trim() !== ""))

TypeError: word.trim is not a function
    at http://127.0.0.1:8188/extensions/Gemini_Zho/GeminiAPINode.js:49:38
    at Array.filter (<anonymous>)
    at ComfyNode.outSet (http://127.0.0.1:8188/extensions/Gemini_Zho/GeminiAPINode.js:49:16)
    at nodeType.onConfigure (http://127.0.0.1:8188/extensions/Gemini_Zho/GeminiAPINode.js:69:18)
    at ComfyNode.onConfigure (http://127.0.0.1:8188/assets/index-Bv0b06LE.js:193565:18)
    at ComfyNode.configure (http://127.0.0.1:8188/assets/index-Bv0b06LE.js:57332:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions