Skip to content

Commit

Permalink
Merge pull request #483 from OpenCatalogi/feature/DIMOC-99/change-ope…
Browse files Browse the repository at this point in the history
…ncatalog-endpoint

Fix endpoint /opencatalogi
  • Loading branch information
bbrands02 authored Jul 19, 2024
2 parents e0f4fba + 1227f08 commit ca71f20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pwa/src/apiService/apiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default class APIService {
const authorization = this.JWT ? { Authorization: "Bearer " + this.JWT } : {};

return axios.create({
baseURL: "https://nextcloud.test.commonground.nu/index.php/apps/opencatalog/api",
baseURL: "https://nextcloud.test.commonground.nu/index.php/apps/opencatalogi/api",
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,18 +149,18 @@ export const VerticalFiltersPublicationsTemplate: React.FC<VerticalFiltersPublic
if (!getFilterOptions.isSuccess) return;

// Status
const statusWithData = getFilterOptions.data.facets["data.status"].map((status: any) => ({
const statusWithData = getFilterOptions.data.facets["data.status"]?.map((status: any) => ({
label: _.upperFirst(status._id ?? "unknown"),
value: status._id,
}));
// Themes
const themesWithData = getFilterOptions.data.facets["data.themes"].map((theme: any) => (
const themesWithData = getFilterOptions.data.facets["data.themes"]?.map((theme: any) => (
{
label: _.upperFirst(theme._id ?? "unknown"),
value: theme._id,
}));
// Types (attachments.type)
const typesWithData = getFilterOptions.data.facets["attachments.type"].map((type: any) => (
const typesWithData = getFilterOptions.data.facets["attachments.type"]?.map((type: any) => (
{
label: _.upperFirst(type._id ?? "unknown"),
value: type._id,
Expand Down

0 comments on commit ca71f20

Please sign in to comment.