Remove unneeded toString in PluginDetail
This commit is contained in:
parent
4f3a439679
commit
921247343c
@ -22,10 +22,7 @@ const buildPluginProps = (
|
|||||||
): PluginProps => {
|
): PluginProps => {
|
||||||
const dataPlugin = data && data.plugins.length > 0 && data.plugins[0];
|
const dataPlugin = data && data.plugins.length > 0 && data.plugins[0];
|
||||||
return {
|
return {
|
||||||
hash:
|
hash: (plugin && plugin.hash) || (dataPlugin && dataPlugin.hash) || "",
|
||||||
(plugin && plugin.hash) ||
|
|
||||||
(dataPlugin && dataPlugin.hash.toString(36)) ||
|
|
||||||
"",
|
|
||||||
size: plugin?.size || (dataPlugin && dataPlugin.size) || 0,
|
size: plugin?.size || (dataPlugin && dataPlugin.size) || 0,
|
||||||
author:
|
author:
|
||||||
plugin?.parsed?.header.author ||
|
plugin?.parsed?.header.author ||
|
||||||
|
Loading…
Reference in New Issue
Block a user