apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

[ API Profile ] After updating value of API it redirects to API catalog #3139

Closed marla-singer closed 6 years ago

marla-singer commented 6 years ago

Steps

  1. Create an API or go to existing API
  2. Navigate to Settings tab
  3. Change Lifecycle status, description or URL value (but not Name parameter)
  4. Click on the button "Save"

Expected result

Actual result

saransh-dev commented 6 years ago

Hi @marla-singer ,

As i found the issue, this.updateDoc.$set.slug; gets undefine when we upate api except api name inside autoform file in apis/profile/settings/details/.

And because of autorun inside onCreated in view.js in apis/profile/. Before route, FlowRouter.getParam('slug') gets null.

So, we can check slug before using inside onCreated.

Please advise.

marla-singer commented 6 years ago
  1. In the file apis/profile/settings/details/ remove else branch - don't redirect to Catalog

So, we can check slug before using inside onCreated.

  1. Yes, go ahead