You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "RGZingYang (via GitHub)" <gi...@apache.org> on 2026/08/26 07:29:33 UTC

[I] bug: Dashboard:045e3142867e3b7d5d1b8ec40bf8f66a7ce24a64 trim is not a function [apisix]

RGZingYang opened a new issue, #13882:
URL: https://github.com/apache/apisix/issues/13882

   ### Current Behavior
   
   <img width="1980" height="836" alt="Image" src="https://github.com/user-attachments/assets/7e838b40-3990-418d-b8d7-c7bcd0a635fa" />
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   3.18.0 内嵌 Dashboard 对应 commit:
   
   045e3142867e3b7d5d1b8ec40bf8f66a7ce24a64
   
   问题代码就在这个文件里:
   
   const value = useWatch({
     control: props.control,
     name: props.name,
   }) as string | undefined;
   
   const [id] = useDebouncedValue((value ?? '').trim(), 300);
   
   你的:
   
   "plugin_config_id": 10001
   
   进来后实际是:
   
   value = 10001 // number
   
   所以这里最终变成:
   
   10001.trim()
   
   报错。
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.18
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org