dengliming opened a new issue, #650: URL: https://github.com/apache/shenyu-dashboard/issues/650
## Description Both components put `form: PropTypes.object, visible: PropTypes.bool, onOk: PropTypes.func, ...` under `static defaultProps` instead of `static propTypes`. If any prop is omitted, the default becomes a truthy validator function (e.g. `visible` is truthy, `onOk?.()` calls the PropTypes checker). ## Location (Lines refer to `master @ 83969a5`.) - `src/routes/Document/components/AddAndUpdateApiDoc.js:30` - `src/routes/Document/components/AddAndUpdateTag.js:27` ## Impact No visible breakage today because callers pass all props, but the declaration is wrong and PropTypes validation never runs. ## Suggested fix Rename to `static propTypes`. ## Related existing None -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
