The plugin i'm working on creates default index patterns based on tenant's id during the first start of Kibana in browser. The problem is that whilst doing it, the ' Create index pattern' menu appears and besides index patterns already existing prior to that, the Discover tab is unavailable (every click takes me back to 'Create index pattern menu') until Kibana is refreshed, then Discover tab is fully functional.
I've tried setting default index pattern by using server.inject() but it doesn't seem to work besides that request returns status 200.
Is there's a way to do it without the refresh?
Thanks a lot