Skip to content

Commit

Permalink
Remove locales from search (#1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mielek committed Sep 9, 2022
1 parent b5141c9 commit f59530d
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/persistence/mapiObjectStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,24 +394,10 @@ export class MapiObjectStorage implements IObjectStorage {
const isLocalized = localizedContentTypes.includes(contentType);
const localeSearchPrefix = isLocalized ? `${selectedLocale}/` : "";

if (key === "popups") {
const pageOfPopups: Page<PopupInstanceModel> = {
if (key === "popups" || key === "locales") {
return {
value: []
};

return <any>pageOfPopups;
}

if (key === "locales") {
const pageOfLocales: Page<LocaleModel> = {
value: [{
key: `contentTypes/locales/contentItem/en_us`,
code: "en-us",
displayName: "English (US)"
}]
};

return <any>pageOfLocales;
}

try {
Expand Down

0 comments on commit f59530d

Please sign in to comment.