Issue description
if you add a plugin with empty config when add or edit route, the plugin is not saved.
Expected behavior
key-auth plugin saved
How to Reproduce
- add/edit route
- add a key-auth plugin with empty config
- save
- view route
- the key-auth plugin is not saved.
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