@webitel/ui-sdk 24.8.19 → 24.8.20
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.
package/package.json
CHANGED
|
@@ -99,6 +99,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
99
99
|
},
|
|
100
100
|
|
|
101
101
|
RESTORE_FILTERS: async (context) => {
|
|
102
|
+
context.state._emitter = mitt(); // FIXME wtf
|
|
102
103
|
await Promise.allSettled(context.getters._STATE_FILTER_NAMES.map((name) => {
|
|
103
104
|
return context.dispatch('RESTORE_FILTER', { name });
|
|
104
105
|
}));
|
|
@@ -132,6 +133,7 @@ export default class FiltersStoreModule extends BaseStoreModule {
|
|
|
132
133
|
|
|
133
134
|
EMIT: async (context, { event, payload }) => {
|
|
134
135
|
return new Promise(async (resolve, reject) => {
|
|
136
|
+
console.info(context.state._emitter);
|
|
135
137
|
const wildcardListeners = context.state._emitter.all.get('*');
|
|
136
138
|
const eventListeners = context.state._emitter.all.get(event);
|
|
137
139
|
|