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);
|
final theme = Theme.of(context);
|
||||||
var fullCommunitySnap = useMemoFuture(() {
|
var fullCommunitySnap = useMemoFuture(() {
|
||||||
final auth = tokenOrNull(context, instanceUrl);
|
final auth = tokenOrNull(context, instanceUrl);
|
||||||
if (communityId != null && instanceUrl != null) {
|
if (communityId != null) {
|
||||||
return LemmyApi(_community.instanceUrl).v1.getCommunity(
|
return LemmyApi(instanceUrl).v1.getCommunity(
|
||||||
id: _community.id,
|
id: communityId,
|
||||||
auth: auth,
|
auth: auth,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue