@subiz/widget-v4 4.1.124 → 4.1.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -87,7 +87,7 @@ class Events extends _common.Com {
|
|
|
87
87
|
render() {
|
|
88
88
|
if (this.state.error) return this.renderError();
|
|
89
89
|
let events = _index.default.map(this.props.store.listEvents(this.props.cid));
|
|
90
|
-
if (!this.state.loading && _index.default.size(events) === 0) {
|
|
90
|
+
if (!this.state.loading && _index.default.size(events) === 0 && !this.props.cid) {
|
|
91
91
|
return (0, _preact.h)("div", {
|
|
92
92
|
ref: ref => this.refBody = ref,
|
|
93
93
|
class: "widget-body--events-container"
|
package/package.json
CHANGED
package/src/chatbox/Events.js
CHANGED
|
@@ -93,7 +93,7 @@ export default class Events extends Com {
|
|
|
93
93
|
if (this.state.error) return this.renderError()
|
|
94
94
|
let events = sb.map(this.props.store.listEvents(this.props.cid))
|
|
95
95
|
|
|
96
|
-
if (!this.state.loading && sb.size(events) === 0) {
|
|
96
|
+
if (!this.state.loading && sb.size(events) === 0 && !this.props.cid) {
|
|
97
97
|
return (
|
|
98
98
|
<div ref={(ref) => (this.refBody = ref)} class='widget-body--events-container'>
|
|
99
99
|
<div class='widget-body--empty'>
|