fix: Flash of empty state on paginated lists (#3351)
* fix: Flash of empty state on paginated lists fix: Typing of PaginatedList to generic * test * test
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { computed, observable } from "mobx";
|
||||
import { Role } from "@shared/types";
|
||||
import BaseModel from "./BaseModel";
|
||||
import ParanoidModel from "./ParanoidModel";
|
||||
import Field from "./decorators/Field";
|
||||
|
||||
class User extends BaseModel {
|
||||
class User extends ParanoidModel {
|
||||
@Field
|
||||
@observable
|
||||
id: string;
|
||||
@@ -34,8 +34,6 @@ class User extends BaseModel {
|
||||
|
||||
isSuspended: boolean;
|
||||
|
||||
createdAt: string;
|
||||
|
||||
@computed
|
||||
get isInvited(): boolean {
|
||||
return !this.lastActiveAt;
|
||||
|
||||
Reference in New Issue
Block a user