sunbeam icon indicating copy to clipboard operation
sunbeam copied to clipboard

mode: `search` not returning a payload['query']

Open gwenwindflower opened this issue 1 year ago • 4 comments

In python:

manifest = {
    "title": "xn",
    "commands": [
        {
            "name": "search_nodes",
            "title": "Search nodes",
            "mode": "search",
        }
    ],
}
if payload["command"] == "search_nodes":
    query = payload["query"]

query is throwing a key error. I dumped the payload out to JSON and there is indeed no query key.

gwenwindflower avatar Feb 23 '24 00:02 gwenwindflower

Thanks for the bug report, I'll take a look

pomdtr avatar Feb 23 '24 00:02 pomdtr

thanks! let me know if you need more/better details.

gwenwindflower avatar Feb 23 '24 01:02 gwenwindflower