diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-02 00:34:30 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-02 00:34:30 -0400 |
| commit | 1dee63242684f02543cf7667b53baa00d10ab6c1 (patch) | |
| tree | 105996e5a21d9e242c338496dc9c44fcf7a66dc4 /src/client/views/nodes/FontIconBox.tsx | |
| parent | 3c7f85dbcddca0ffacd82c2d39e88bba8c4b3f3a (diff) | |
fixed email (de)normalization. fixed sharing to hide objects whose permissions have been revoked
Diffstat (limited to 'src/client/views/nodes/FontIconBox.tsx')
| -rw-r--r-- | src/client/views/nodes/FontIconBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FontIconBox.tsx b/src/client/views/nodes/FontIconBox.tsx index 6e96513c7..156256fe5 100644 --- a/src/client/views/nodes/FontIconBox.tsx +++ b/src/client/views/nodes/FontIconBox.tsx @@ -105,7 +105,7 @@ export class FontIconBadge extends React.Component<FontIconBadgeProps> { render() { if (!(this.props.collection instanceof Doc)) return (null); - const length = DocListCast(this.props.collection.data).length; + const length = DocListCast(this.props.collection.data).filter(d => Object.keys(d).length).length; // filter out any documents that we can't read return <div className="fontIconBadge-container" style={{ width: 15, height: 15, top: 12 }} ref={this._notifsRef}> <div className="fontIconBadge" style={length > 0 ? { "display": "initial" } : { "display": "none" }} onPointerDown={this.onPointerDown} > |
