Skip to content

Commit

Permalink
Merge pull request #45745 from bernhardoj/fix/45740-markdown-converte…
Browse files Browse the repository at this point in the history
…d-to-html-in-ws-invite-page

[CP Staging] Fix workspace description shows as HTML in workspace invite message page
  • Loading branch information
mountiny authored Jul 19, 2024
2 parents 567627d + 4cdcefa commit f69f858
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/workspace/WorkspaceInviteMessagePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import Navigation from '@libs/Navigation/Navigation';
import * as OptionsListUtils from '@libs/OptionsListUtils';
import Parser from '@libs/Parser';
import * as PolicyUtils from '@libs/PolicyUtils';
import updateMultilineInputRange from '@libs/updateMultilineInputRange';
import type {SettingsNavigatorParamList} from '@navigation/types';
Expand Down Expand Up @@ -83,7 +84,7 @@ function WorkspaceInviteMessagePage({
workspaceInviteMessageDraft ||
// policy?.description can be an empty string
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
policy?.description ||
Parser.htmlToMarkdown(policy?.description ?? '') ||
translate('workspace.common.welcomeNote', {
workspaceName: policy?.name ?? '',
});
Expand Down

0 comments on commit f69f858

Please sign in to comment.