diff --git a/packages/core/client/src/schema-component/common/utils/uitls.tsx b/packages/core/client/src/schema-component/common/utils/uitls.tsx index 198f98cfa5..06d75c0c6b 100644 --- a/packages/core/client/src/schema-component/common/utils/uitls.tsx +++ b/packages/core/client/src/schema-component/common/utils/uitls.tsx @@ -183,7 +183,9 @@ export async function getRenderContent(templateEngine, content, variables, local const html = renderedContent({ ...variables?.ctxRef?.current, ...data, $nDate: variableDate }); return await defaultParse(html); } catch (error) { - console.log(error); + if (!/VariablesProvider: .* is not found/.test(error.message)) { + console.log(error); + } return content; } } else { @@ -191,7 +193,9 @@ export async function getRenderContent(templateEngine, content, variables, local const html = await replaceVariableValue(content, variables, localVariables); return await defaultParse(html); } catch (error) { - console.log(error); + if (!/VariablesProvider: .* is not found/.test(error.message)) { + console.log(error); + } return content; } }