Skip to content

Commit

Permalink
fix(mavat): fix exception where file.FILE_DATA is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
yossi-eynav committed May 5, 2024
1 parent 42e0130 commit 261f791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/lib/mavat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const getPlanFilesNewMavat = (data) => {
description: file.RUB_DESC,
date: file.EDITING_DATE,
id: file.ID,
fileIcon: file.FILE_DATA.ficon,
fileIcon: file.FILE_DATA ? file.FILE_DATA.ficon: null,
num: file.PLAN_ENTITY_DOC_NUM
};
});
Expand Down

0 comments on commit 261f791

Please sign in to comment.