Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot support 2 or more groups #42

Open
yiutsunchan opened this issue May 24, 2020 · 4 comments
Open

Cannot support 2 or more groups #42

yiutsunchan opened this issue May 24, 2020 · 4 comments

Comments

@yiutsunchan
Copy link

Please help

I tried to create more than 1 group to the firebase via the "group-create.js" script
The app show this error.
Screenshot 2020-05-25 at 2 37 45 AM

Here is the error

════════ Exception caught by widgets library ═══════════════════════════════════
The following NoSuchMethodError was thrown building StoreConnector<AppState, ChannelScreenViewModel>(dependencies: [StoreProvider]):
The getter 'authorId' was called on null.
Receiver: null
Tried calling: authorId

The relevant error-causing widget was
StoreConnector<AppState, ChannelScreenViewModel>
lib/…/channel/channel_screen.dart:19
When the exception was thrown, this was the stack
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1 ChannelScreenViewModel.fromStore.
package:circles_app/…/channel/channel_screen_viewmodel.dart:42
#2 ChannelScreenViewModelBuilder.update
package:circles_app/…/channel/channel_screen_viewmodel.g.dart:172
#3 new _$ChannelScreenViewModel
package:circles_app/…/channel/channel_screen_viewmodel.g.dart:27
#4 ChannelScreenViewModel.fromStore
package:circles_app/…/channel/channel_screen_viewmodel.dart:40
...

@xJon
Copy link

xJon commented May 25, 2020

Pretty sure this is unimplemented by them, but you can create another group with: Firestore.instance.collection('groups').add({<Map>})

@yiutsunchan
Copy link
Author

@xJon Agreed that they haven't implemented the "Create Group" UI within the app.
However, I used the script "group-create.js" to create 2 groups and the app crash because of this.

@xJon
Copy link

xJon commented May 25, 2020

I'm not sure whether the script was intended for that; I'm not an expect in JavaScript nor did I read the script itself, but I do know that it's rather simple to add a new group with the code I quoted above.

@Pssu1420
Copy link

@yiutsunchan did you find a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants