+ );
}
});
@@ -366,10 +379,6 @@ const ATag = React.memo(({value='', title, href, target, style={}}) => {
value = imageStubMap[imgStubKey] || ; // if a src is given but, not found.. show bad img.
}
- return (
-
- );
+ return {value} ;
});
diff --git a/src/firefly/js/util/WebUtil.js b/src/firefly/js/util/WebUtil.js
index fc0328961e..60169dfcb3 100644
--- a/src/firefly/js/util/WebUtil.js
+++ b/src/firefly/js/util/WebUtil.js
@@ -836,4 +836,8 @@ export function hashCode(str) {
* integers. Since we want the results to be always positive, convert the
* signed int to an unsigned by doing an unsigned bitshift. */
return hash >>> 0;
+}
+
+export function isNumeric(n) {
+ return !isNaN(parseFloat(n)) && isFinite(n);
}
\ No newline at end of file