Skip to content

Commit

Permalink
Fix: fix undefined bug (#311)
Browse files Browse the repository at this point in the history
Signed-off-by: barnettZQG <[email protected]>
  • Loading branch information
barnettZQG authored Dec 29, 2021
1 parent ce29a22 commit c7fdbc7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/ApplicationInstanceList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ class ApplicationInstanceList extends React.Component<Props, State> {
const outputs = configuration.status?.apply?.outputs;
let instanceName = '';
if (outputs) {
instanceName = outputs[identifierKey].value;
if (outputs[identifierKey]) {
instanceName = outputs[identifierKey].value;
}
if (url) {
const params = url.match(/\{(.+?)\}/g);
if (Array.isArray(params) && params.length > 0) {
Expand Down

0 comments on commit c7fdbc7

Please sign in to comment.