Skip to content

Commit

Permalink
Fixed importing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Aug 31, 2020
1 parent 392fd34 commit 214556f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"volto-tabsview": [
"develop/volto-tabsview/src"
],
"volto-grid-block": [
"@eeacms/volto-grid-block": [
"develop/volto-grid-block/src"
],
"volto-datablocks": [
Expand Down
5 changes: 3 additions & 2 deletions mrs.developer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"volto-grid-block": {
"url": "https://github.com/eea/volto-grid-block.git",
"branch": "master",
"path": "src"
"path": "src",
"package": "@eeacms/volto-grid-block"
},
"volto-datablocks": {
"url": "https://github.com/eea/volto-datablocks.git",
Expand All @@ -22,7 +23,7 @@
},
"volto-addons": {
"url": "https://github.com/eea/volto-addons.git",
"branch": "master",
"branch": "volto_7",
"path": "src"
},
"volto-embed": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"@eeacms/volto-slate-metadata-mentions",
"@eeacms/volto-metadata-block",
"@eeacms/volto-tabs-block",
"@eeacms/volto-grid-block",
"volto-addons",
"volto-datablocks",
"volto-grid-block"
"volto-datablocks"
],
"scripts": {
"start": "razzle start",
Expand Down
4 changes: 3 additions & 1 deletion src/components/manage/Blocks/SidebarBlock/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const makeNewNavigation = (
},
active: (pathname) => {
return (
search.facilityInspireId === facility.facilityInspireId &&
search.installationInspireId === installation &&
pathname.includes(item.url)
);
},
Expand All @@ -220,6 +220,7 @@ const makeNewNavigation = (
return (
search.facilityInspireId ===
facility.facilityInspireId &&
search.installationInspireId === installation &&
pathname.includes(child.url)
);
},
Expand All @@ -231,6 +232,7 @@ const makeNewNavigation = (
setQueryParam({
queryParam: {
facilityInspireId: facility.facilityInspireId,
installationInspireId: installation,
},
}),
);
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/api.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getInstallations = (dispatch, siteInspireId) => {
facilityInspireId,
string_agg(concat(installationInspireId, ''), ',') as installations
FROM [IED].[latest].[Browse8Header] as Results
WHERE siteInspireId LIKE 'UK.CAED/NRW170267.SITE'
WHERE siteInspireId = '${siteInspireId}'
GROUP BY facilityInspireId`);
const url = `${settings.providerUrl}?query=${sql}`;
return new Promise((resolve, reject) => {
Expand Down Expand Up @@ -80,7 +80,7 @@ export const getLcps = (dispatch, siteInspireId) => {
installationInspireId,
string_agg(concat(lcpInspireId, ''), ',') as lcps
FROM [IED].[latest].[vw_Browse10_Header] as Results
WHERE siteInspireId LIKE '${siteInspireId}'
WHERE siteInspireId = '${siteInspireId}'
GROUP BY facilityInspireId, installationInspireId`);
const url = `${settings.providerUrl}?query=${sql}`;
return new Promise((resolve, reject) => {
Expand Down

0 comments on commit 214556f

Please sign in to comment.