Improve Redux types part 4 (#26003)
* Fix return type of addUsersToChannel * Fix type of TeamInviteWithError.error * Change Constants.Integrations.PAGE_SIZE into a number"
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8a869b0623
Коммит
e98aa55ad7
@@ -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}),
|
||||
);
|
||||
|
||||
Ссылка в новой задаче
Block a user