The API: api/opensearch-dashboards/settings not able to get the correct default index consistently

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): 1.2.0

Describe the issue:
when we use the API: api/opensearch-dashboards/settings we are not getting the correct default index, even if we don’t pass any tenant header it was returning the previous tenant’s default index.