dengliming opened a new issue, #622: URL: https://github.com/apache/shenyu-dashboard/issues/622
## Description `RuleCopy.getAllRule` uses `this.props.currentNamespaceId`, whereas the namespace dropdown updates `this.state.currentNamespaceId` (`SelectorCopy` correctly uses state). In addition, `selectorList.find(...)` and `pluginList.find(...)` results are dereferenced without a null check, so a rule whose selector or plugin is missing from the (page-size 9999) fetch throws. ## Location (Lines refer to `master @ 83969a5`.) - `src/routes/Plugin/Common/RuleCopy.js:56` (props vs state) - `src/routes/Plugin/Common/RuleCopy.js:91-92,105-106` (unguarded `find`) ## Impact Choosing another namespace in the Rule copy dialog re-fetches the same namespace, so the tree never changes; a dangling selector/plugin reference crashes the modal. ## Suggested fix Use `this.state.currentNamespaceId`, and skip entries whose selector/plugin cannot be found. ## 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]
