initial state should be valid JSON so JSON parse doesn't fail
This commit is contained in:
1 parent
96e03fcfa4
commit
df78d284c4
1 file changed
+1
-1
@@ -148,7 +148,7 @@ define([
|
|||||||
channel, // the channel we're to connect to
|
channel, // the channel we're to connect to
|
||||||
|
|
||||||
// initialState argument. (optional)
|
// initialState argument. (optional)
|
||||||
config.initialState || '',
|
config.initialState || '{}',
|
||||||
|
|
||||||
// transform function (optional), which handles conflicts
|
// transform function (optional), which handles conflicts
|
||||||
{ transformFunction: config.transformFunction });
|
{ transformFunction: config.transformFunction });
|
||||||
|
|||||||
Reference in new issue
Block a user