- {moleculeList.length > 0 &&
- moleculeList.map((data, index, array) => {
- let molecule = Object.assign({ isCrossReference: true }, data.molecule);
- let previousData = index > 0 && Object.assign({ isCrossReference: true }, array[index - 1]);
- let nextData = index < array?.length && Object.assign({ isCrossReference: true }, array[index + 1]);
+
+ {moleculeList.length > 0 &&
+ moleculeList.map((data, index, array) => {
+ let molecule = Object.assign({ isCrossReference: true }, data.molecule);
+ let previousData = index > 0 && Object.assign({ isCrossReference: true }, array[index - 1]);
+ let nextData =
+ index < array?.length && Object.assign({ isCrossReference: true }, array[index + 1]);
- return (
-
- );
- })}
- {!(moleculeList.length > 0) && (
-
+ return (
+
+ );
+ })}
+ {!(moleculeList.length > 0) && (
+
+
+ No molecules found!
+
+
+ )}
+
+ >
+ )}
+ {isLoadingCrossReferenceScores === true && (
+
- No molecules found!
+
)}
-
- >
- )}
- {isLoadingCrossReferenceScores === true && (
-