Skip to content

Commit d307c92

Browse files
seanstorymiguelgrinberg
authored andcommitted
un-nest awaits
1 parent 431345e commit d307c92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example-apps/internal-knowledge-search/app-ui/src/components/SearchApplicationSettings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const SearchApplicationSettings: React.FC = () => {
1414

1515
const fetchPersonaOptions = async () => {
1616
try {
17-
const identitiesIndex = await fetchIdentitiesIndex(await fetchSearchApplicationIndices())
17+
const searchAppIndices = await fetchSearchApplicationIndices()
18+
const identitiesIndex = await fetchIdentitiesIndex(searchAppIndices)
1819
const identitiesPath = searchEndpoint + "/" + identitiesIndex + "/_search"
1920
const response = await fetch(identitiesPath, {
2021
method: "POST",

0 commit comments

Comments
 (0)