Unified · Split
| @@ -126,7 +126,7 @@ export const normalizeSourceForCreate = (input: { · 125 unmodified lines | ||
| 126 | 126 | status: input.source.status, |
| 127 | 127 | enabled: input.source.enabled, |
| 128 | 128 | namespace: trimOrNull(input.source.namespace), |
| 129 | − ...(input.source.iconUrl?.trim() ? { iconUrl: input.source.iconUrl.trim() } : {}), | |
| 129 | + iconUrl: input.source.iconUrl, | |
| 130 | 130 | createdAt: input.now, |
| 131 | 131 | updatedAt: input.now, |
| 132 | 132 | }); |
| @@ -139,7 +139,6 @@ export const normalizeSourceForSave = (input: { · 6 unmodified lines | ||
| 139 | 139 | ...input.source, |
| 140 | 140 | name: input.source.name.trim(), |
| 141 | 141 | namespace: trimOrNull(input.source.namespace), |
| 142 | − ...(input.source.iconUrl?.trim() ? { iconUrl: input.source.iconUrl.trim() } : {}), | |
| 143 | 142 | updatedAt: input.now, |
| 144 | 143 | }); |
| 145 | 144 | |