* Fix return type of addUsersToChannel

* Fix type of TeamInviteWithError.error

* Change Constants.Integrations.PAGE_SIZE into a number"
Этот коммит содержится в:
Harrison Healey
2024-01-23 09:33:03 -05:00
коммит произвёл GitHub
родитель 8a869b0623
Коммит e98aa55ad7
10 изменённых файлов: 21 добавлений и 14 удалений

Просмотреть файл

@@ -118,7 +118,7 @@ export default class Bots extends React.PureComponent<Props, State> {
public componentDidMount(): void {
this.props.actions.loadBots(
Constants.Integrations.START_PAGE_NUM,
parseInt(Constants.Integrations.PAGE_SIZE, 10),
Constants.Integrations.PAGE_SIZE,
).then(
(result) => {
if (result.data) {

Просмотреть файл

@@ -53,7 +53,7 @@ export default class InstalledIncomingWebhooks extends React.PureComponent<Props
this.props.actions.loadIncomingHooksAndProfilesForTeam(
this.props.team.id,
Constants.Integrations.START_PAGE_NUM,
Constants.Integrations.PAGE_SIZE as any, // HARRISONTODO PAGE_SIZE doesn't seem like it should be a string
Constants.Integrations.PAGE_SIZE,
).then(
() => this.setState({loading: false}),
);

Просмотреть файл

@@ -99,7 +99,7 @@ export default class InstalledOutgoingWebhooks extends React.PureComponent<Props
this.props.actions.loadOutgoingHooksAndProfilesForTeam(
this.props.teamId,
Constants.Integrations.START_PAGE_NUM,
parseInt(Constants.Integrations.PAGE_SIZE, 10),
Constants.Integrations.PAGE_SIZE,
).then(
() => this.setState({loading: false}),
);