Skip to content

Commit f7912fa

Browse files
committed
feat: add handling for new species data in payload processing
1 parent b303e22 commit f7912fa

File tree

1 file changed

+6
-0
lines changed
  • src/frontend/curator_dashboard/src/redux

1 file changed

+6
-0
lines changed

src/frontend/curator_dashboard/src/redux/actions.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ export const fetchOtherData = (paperID) => {
172172
} else {
173173
retData.afp_otherantibodies = [];
174174
}
175+
retData.afp_newspecies = data.data.afp_newspecies;
176+
if (retData.afp_newspecies !== '') {
177+
retData.afp_newspecies = retData.afp_newspecies.split(" | ");
178+
} else {
179+
retData.afp_newspecies = [];
180+
}
175181
resolve(retData);
176182
}).catch((err) => {
177183
reject(err);

0 commit comments

Comments
 (0)