fix(api): style mutators causing errors if blank
Some checks failed
Build / build (push) Failing after 37s
Some checks failed
Build / build (push) Failing after 37s
This commit is contained in:
parent
200716988c
commit
99a59c61e7
@ -47,8 +47,8 @@ export const post = async (request: Request, response: Response) => {
|
||||
show_footer: show_footer === "on",
|
||||
show_timestamp: show_timestamp === "on",
|
||||
colour: colour,
|
||||
title_mutator: title_mutator,
|
||||
description_mutator: description_mutator
|
||||
title_mutator: title_mutator || null,
|
||||
description_mutator: description_mutator || null
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -92,8 +92,8 @@ export const patch = async (request: Request, response: Response) => {
|
||||
show_footer: show_footer === "on",
|
||||
show_timestamp: show_timestamp === "on",
|
||||
colour: colour,
|
||||
title_mutator: title_mutator,
|
||||
description_mutator: description_mutator
|
||||
title_mutator: title_mutator || null,
|
||||
description_mutator: description_mutator || null
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user