diff --git a/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx b/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx index dc0a268bb8..b61362a892 100644 --- a/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/expiration_dropdown.jsx @@ -209,7 +209,7 @@ class ExpirationDropdown extends PureComponent { this.props.onChange(value); }; - componentWillMount () { + UNSAFE_componentWillMount () { const { intl } = this.props; this.options = [ diff --git a/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx b/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx index c8bf2b677b..7135520096 100644 --- a/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx +++ b/app/javascript/mastodon/features/compose/components/featured_tags_dropdown.jsx @@ -203,7 +203,7 @@ class FeaturedTagsDropdown extends PureComponent { this.props.onChange(value); }; - componentWillMount () { + UNSAFE_componentWillMount () { this.options = featuredTags.map((tag) => { return { value: `#${tag}`, text: `#${tag}` }; });