awslabs / aws-saas-boost

AWS SaaS Boost is a ready-to-use toolset that removes the complexity of successfully running SaaS workloads in the AWS cloud.
Apache License 2.0
960 stars 188 forks source link

locally installed client has an error on Application menu #499

Open Hoseong-Seo opened 1 year ago

Hoseong-Seo commented 1 year ago

When client/web is installed locally, it has an error. I start the client with commands "yarn start" and login, and then click Application of side menu. It shows ERROR Cannot read properties of undefined (reading 'filter') TypeError: Cannot read properties of undefined (reading 'filter') at children (http://localhost:3000/src_settings_ApplicationContainer_js.ecc6ae88e3430a383d74.hot-update.js:431:54)

I think it is related with 419 line of "src/settings/ApplicationComponent.js"

"

<AppSettingsSubform isLocked={hasTenants} certOptions={certOptions} acmConsoleLink={acmConsoleLink} hostedZoneOptions={hostedZoneOptions.filter(option => option.name.startsWith(formik.values.domainName))} route53ConsoleLink={route53ConsoleLink}

"

Reproduction Steps

  1. Start the client with commands "yarn start" in local environment(Laptop...)
  2. login in admin
  3. Click "Application" menu of left side.
  4. And show error message.

What did you expect to happen?

What actually happened?

Environment

  • AWS Region :
  • AWS SaaS Boost Version :
  • Workload OS (Linux or Windows) :

Other


This is :bug: Bug Report

PoeppingT commented 1 year ago

@Hoseong-Seo please provide the reproduction steps for this issue

Hoseong-Seo commented 1 year ago

Reproduction Steps

  1. Start the client with commands "yarn start" in your local environment(Laptop...)
  2. Login in admin
  3. Click "Application" menu of left side.
  4. And you can show error message.
PoeppingT commented 1 year ago

@Hoseong-Seo have you configured the .env file in your local environment? There is a script in the client/web folder named update_local_env.sh that you can use to populate your local environment variables for running against your installed SaaS Boost environment.

Hoseong-Seo commented 1 year ago

Yes, I did it. If it's not configured, I can not login to Admin Page. I think It can be timing issue(bug). When it loads application menu, there is no "hostedZoneOptions" value.

image