refactor: Extract stream_data.clean_up_description().

We use this in the few places where update_calculated_fields()
could plausibly be dealing with a new rendered description.
This commit is contained in:
Steve Howell
2021-04-04 17:07:25 +00:00
committed by Tim Abbott
parent 99b177dc7d
commit 5624ed2afe
4 changed files with 10 additions and 5 deletions

View File

@@ -436,6 +436,7 @@ export function show_settings_for(node) {
const sub = stream_data.get_sub_by_id(stream_id);
stream_settings_data.update_calculated_fields(sub);
stream_data.clean_up_description(sub);
const html = render_subscription_settings({
sub,
settings: stream_settings(sub),