We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ae8f78 commit d33207bCopy full SHA for d33207b
pages/alert/runtime-content.page.tsx
@@ -70,7 +70,8 @@ awsuiPlugins.alertContent.registerContentReplacer({
70
context.content &&
71
typeof context.content === 'object' &&
72
'props' in context.content &&
73
- context.content.props.children?.match('Access denied')
+ typeof context.content.props.children === 'string' &&
74
+ context.content.props.children.match('Access denied')
75
)
76
);
77
},
0 commit comments