8000 fix: Solve if a subscription doesn't have values · infinitered/reactotron-redux@adaf06f · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit adaf06f

Browse files
authored
fix: Solve if a subscription doesn't have values
1 parent 6c5bdee commit adaf06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subscriptionsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default function createSubscriptionHandler(
3636

3737
const values = pathObject(cleanedPath, state)
3838

39-
if (starredPath && cleanedPath) {
39+
if (starredPath && cleanedPath && values) {
4040
changes.push(
4141
...Object.entries(values).map(val => ({
4242
path: `${cleanedPath}.${val[0]}`,

0 commit comments

Comments
 (0)
0