@daeryun/dr_components 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -89,7 +89,8 @@ const LawInfoNew = ({ data, tel }) => {
|
|
|
89
89
|
const convertFaqItemType = (template) => {
|
|
90
90
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
91
91
|
if (faqElementMaxCountInContents >= 2) {
|
|
92
|
-
template
|
|
92
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
93
|
+
template.description = template.description.replaceAll('<div itemscope="" itemtype="https://schema.org/FAQPage">', '<div>');
|
|
93
94
|
return template;
|
|
94
95
|
}
|
|
95
96
|
return template;
|
|
@@ -121,8 +121,9 @@ const LawInfoNew = ({ data, tel }: ILawInfoNewPageTypes) => {
|
|
|
121
121
|
const convertFaqItemType = (template: ISeoTemplateTypes): ISeoTemplateTypes => {
|
|
122
122
|
console.log('faqElementMaxCountInContents : ', faqElementMaxCountInContents);
|
|
123
123
|
if ((faqElementMaxCountInContents as number) >= 2) {
|
|
124
|
+
// 해당 게시글에 faqElementMaxCountInContents가 두 개 이상일 경우, template 내부에 FAQPage itemtype을 지운다. FAQPage 중복 이슈로 인한 코드임
|
|
124
125
|
template.description = template.description.replaceAll(
|
|
125
|
-
|
|
126
|
+
'<div itemscope="" itemtype="https://schema.org/FAQPage">',
|
|
126
127
|
'<div>'
|
|
127
128
|
);
|
|
128
129
|
|