Skip to content

Commit d33207b

Browse files
fix: Runtime content page function not found runtime exception (#4225)
Co-authored-by: Gethin Webster <gethinw@amazon.de>
1 parent 8ae8f78 commit d33207b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/alert/runtime-content.page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ awsuiPlugins.alertContent.registerContentReplacer({
7070
context.content &&
7171
typeof context.content === 'object' &&
7272
'props' in context.content &&
73-
context.content.props.children?.match('Access denied')
73+
typeof context.content.props.children === 'string' &&
74+
context.content.props.children.match('Access denied')
7475
)
7576
);
7677
},

0 commit comments

Comments
 (0)