You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/04/22 10:36:24 UTC

[GitHub] [apisix-dashboard] imjoey commented on pull request #1812: fix: can not configure upstream with no nodes

imjoey commented on pull request #1812:
URL: https://github.com/apache/apisix-dashboard/pull/1812#issuecomment-824729089


   @liuxiran
   
   How about we make it in the backend? Please see https://github.com/apache/apisix-dashboard/blob/master/api/internal/core/entity/format.go#L49, we can initialize the `nodes` as an empty slice instead of a nil one. Just change `var nodes []*Node` to `nodes := make([]*Node, 0)` .
   
   Looking forward to your insights.


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org