apisix-dashboard icon indicating copy to clipboard operation
apisix-dashboard copied to clipboard

(s ?? "").trim is not a function

Open RGZingYang opened this issue 3 months ago • 0 comments

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 -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

Additional context

No response

RGZingYang avatar Aug 26 '26 07:08 RGZingYang