From 1357a18b65f6c6d9eb5df45fb9c48645413f97e4 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 22 Feb 2025 16:49:50 +0100 Subject: [PATCH 1/2] Don't crash when text field is not set (#147) --- src/Components/Profile/Subcomponents/ProfileTextView.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Components/Profile/Subcomponents/ProfileTextView.tsx b/src/Components/Profile/Subcomponents/ProfileTextView.tsx index 9fc35bbb..f2f1d283 100644 --- a/src/Components/Profile/Subcomponents/ProfileTextView.tsx +++ b/src/Components/Profile/Subcomponents/ProfileTextView.tsx @@ -17,9 +17,7 @@ export const ProfileTextView = ({ }) => { const text = get(item, dataField) - if (typeof text !== 'string') { - throw new Error('ProfileTextView: text is not a string') - } + const parsedText = typeof text !== 'string' ? '' : text return (
@@ -27,7 +25,7 @@ export const ProfileTextView = ({

{heading}

)}
- +
) From 63e864ff81b6268e5a75b34b6cbd5f25c3d7580f Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Sat, 22 Feb 2025 16:54:34 +0100 Subject: [PATCH 2/2] fix delayed build (#150) We noticed that the build was outdated and lagged behind 1 build. Reason for this is rollup and its second config. Solved by https://github.com/rollup/rollup/issues/1666#issuecomment-1163091988 This could cause problems when types change --- rollup.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/rollup.config.js b/rollup.config.js index 0370b6cc..a4a08289 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -87,5 +87,6 @@ export default [ }), ], external: [/\.css$/], //, /\.d\.ts$/ + watch: false, }, ]