Skip to content

Commit 4b1aaa5

Browse files
authored
Project page is getting blank (#707)
* Blank detail page for some projects - 590
1 parent 72c20c6 commit 4b1aaa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/controllers/project.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ const handleGetPins = async function (projectId, roles, sortBy, pageSize, pageNu
536536
_.assignIn(query, { '_schemaName': 'Organization' });
537537

538538
let thePins = [];
539-
if (!data[0].pins) {
539+
if (!data[0].pins || ( data[0].pins && data[0].pins.length === 0 )) {
540540
// no pins, return empty result;
541541
return Actions.sendResponse(res, 200, [{
542542
total_items: 0

0 commit comments

Comments
 (0)