remove useless check. also fix an error
This commit is contained in:
parent
b329a5fe4e
commit
e977305a0e
|
@ -50,9 +50,9 @@ class CommunityPage extends HookWidget {
|
|||
final theme = Theme.of(context);
|
||||
var fullCommunitySnap = useMemoFuture(() {
|
||||
final auth = tokenOrNull(context, instanceUrl);
|
||||
if (communityId != null && instanceUrl != null) {
|
||||
return LemmyApi(_community.instanceUrl).v1.getCommunity(
|
||||
id: _community.id,
|
||||
if (communityId != null) {
|
||||
return LemmyApi(instanceUrl).v1.getCommunity(
|
||||
id: communityId,
|
||||
auth: auth,
|
||||
);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue