aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-11-25 17:29:02 -0600
committerJP Dillingham <jp@dillingham.me>2022-11-25 17:29:02 -0600
commite34571b4c8579ea3fdb4d68ee6926868f456515f (patch)
tree43173248f6c5a432981e0c3bf880e9fae43abf52
parent2c5f1095ea179cc302bfaa5d3a0d6ba18ca501c7 (diff)
downloadslskd-e34571b4c8579ea3fdb4d68ee6926868f456515f.tar.gz
show '?' when counts are null
-rw-r--r--src/web/src/components/System/Shares/ShareTable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/System/Shares/ShareTable.js b/src/web/src/components/System/Shares/ShareTable.js
index 095a8380..fd2c7623 100644
--- a/src/web/src/components/System/Shares/ShareTable.js
+++ b/src/web/src/components/System/Shares/ShareTable.js
@@ -35,8 +35,8 @@ const ShareTable = ({ shares, onClick }) => {
<Icon name='folder'/>
<Link to='#'>{share.localPath}</Link>
</Table.Cell>
- <Table.Cell>{share.directories}</Table.Cell>
- <Table.Cell>{share.files}</Table.Cell>
+ <Table.Cell>{share.directories ?? '?'}</Table.Cell>
+ <Table.Cell>{share.files ?? '?'}</Table.Cell>
<Table.Cell>{share.alias}</Table.Cell>
<Table.Cell>{share.remotePath}</Table.Cell>
</Table.Row>))}