apisix-dashboard
apisix-dashboard copied to clipboard
(s ?? "").trim is not a function
Issue description
ResourceRef.tsx : const [id] = useDebouncedValue((value ?? '').trim(), 300); value is number such as plugin_configs_id
Expected behavior
const [id] = useDebouncedValue( value == null ? '' : String(value).trim(), 300, );
How to Reproduce
https://github.com/apache/apisix-dashboard/blob/master/src/components/form/ResourceRef.tsx
Screenshots
No response
Environment
- apisix version (cmd:
apisix version): - OS (cmd:
uname -a): - OpenResty / Nginx version (cmd:
nginx -Voropenresty -V): - etcd version, if have (cmd: run
etcd --version): - apisix-dashboard version, if have:
- Browser version, if have:
Additional context
No response