Skip to content

Commit

Permalink
CR: Update read_list_index_route.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliidm authored Aug 17, 2023
1 parent c85531e commit ee45572
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const readListIndexRoute = (router: ListsPluginRouter): void => {
const listDataStreamExists = await lists.getListDataStreamExists();
const listItemDataStreamExists = await lists.getListItemDataStreamExists();

if (listDataStreamExists || listItemDataStreamExists) {
if (listDataStreamExists && listItemDataStreamExists) {
const [validated, errors] = validate(
{ list_index: listDataStreamExists, list_item_index: listItemDataStreamExists },
readListIndexResponse
Expand Down

0 comments on commit ee45572

Please sign in to comment.