Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/DirectoryView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class DirectoryView extends React.Component<IDirectoryViewProps, IDirectoryViewS
};

changeType = (type: string) => {
this.setState({ type, data: [] }, () => this.search());
this.setState({ type, data: [], total: -1 }, () => this.search());

if (type === 'users') {
logEvent(events.DIRECTORY_SEARCH_USERS);
Expand All @@ -164,7 +164,7 @@ class DirectoryView extends React.Component<IDirectoryViewProps, IDirectoryViewS

toggleWorkspace = () => {
this.setState(
({ globalUsers }) => ({ globalUsers: !globalUsers, data: [] }),
({ globalUsers }) => ({ globalUsers: !globalUsers, data: [], total: -1 }),
() => this.search()
);
};
Expand Down
Loading