Skip to content

Commit

Permalink
Project page is getting blank (#707)
Browse files Browse the repository at this point in the history
* Blank detail page for some projects - 590
  • Loading branch information
dinesh-aot committed Nov 17, 2022
1 parent 72c20c6 commit 4b1aaa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ const handleGetPins = async function (projectId, roles, sortBy, pageSize, pageNu
_.assignIn(query, { '_schemaName': 'Organization' });

let thePins = [];
if (!data[0].pins) {
if (!data[0].pins || ( data[0].pins && data[0].pins.length === 0 )) {
// no pins, return empty result;
return Actions.sendResponse(res, 200, [{
total_items: 0
Expand Down

0 comments on commit 4b1aaa5

Please sign in to comment.