mirror of
https://github.com/documenso/documenso.git
synced 2026-08-24 07:12:23 +10:00
chore(trpc): type-safety cleanups across routers
This commit is contained in:
@@ -138,7 +138,7 @@ export const updateTeamSettingsRoute = authenticatedProcedure
|
||||
|
||||
if (brandingCss === null) {
|
||||
sanitizedBrandingCss = null;
|
||||
} else if (typeof brandingCss === 'string') {
|
||||
} else if (brandingCss !== undefined) {
|
||||
const result = sanitizeBrandingCss(brandingCss);
|
||||
sanitizedBrandingCss = result.css.trim() === '' ? null : result.css;
|
||||
cssWarnings = result.warnings;
|
||||
|
||||
Reference in New Issue
Block a user