fix:bug generate article

This commit is contained in:
Anang Yusman 2025-01-08 11:02:51 +08:00
parent d76b224a72
commit b91e8d249d
4 changed files with 8 additions and 8 deletions

View File

@ -879,7 +879,7 @@ export default function FormAudio() {
{isGeneratedArticle && ( {isGeneratedArticle && (
<div className="mt-3 pb-0 flex flex-row "> <div className="mt-3 pb-0 flex flex-row ">
{articleIds.map((id: string, index: number) => ( {articleIds.map((id: string, index: number) => (
<button <p
key={index} key={index}
className={`mr-3 px-3 py-2 rounded-md ${ className={`mr-3 px-3 py-2 rounded-md ${
selectedArticleId === id selectedArticleId === id
@ -889,7 +889,7 @@ export default function FormAudio() {
onClick={() => handleArticleIdClick(id)} onClick={() => handleArticleIdClick(id)}
> >
{id} {id}
</button> </p>
))} ))}
</div> </div>
)} )}

View File

@ -890,7 +890,7 @@ export default function FormImage() {
{isGeneratedArticle && ( {isGeneratedArticle && (
<div className="mt-3 pb-0 flex flex-row"> <div className="mt-3 pb-0 flex flex-row">
{articleIds.map((id: string, index: number) => ( {articleIds.map((id: string, index: number) => (
<button <p
key={index} key={index}
className={`mr-3 px-3 py-2 rounded-md ${ className={`mr-3 px-3 py-2 rounded-md ${
selectedArticleId === id selectedArticleId === id
@ -900,7 +900,7 @@ export default function FormImage() {
onClick={() => handleArticleIdClick(id)} onClick={() => handleArticleIdClick(id)}
> >
{id} {id}
</button> </p>
))} ))}
</div> </div>
)} )}

View File

@ -879,7 +879,7 @@ export default function FormTeks() {
{isGeneratedArticle && ( {isGeneratedArticle && (
<div className="mt-3 pb-0 flex flex-row "> <div className="mt-3 pb-0 flex flex-row ">
{articleIds.map((id: string, index: number) => ( {articleIds.map((id: string, index: number) => (
<button <p
key={index} key={index}
className={`mr-3 px-3 py-2 rounded-md ${ className={`mr-3 px-3 py-2 rounded-md ${
selectedArticleId === id selectedArticleId === id
@ -889,7 +889,7 @@ export default function FormTeks() {
onClick={() => handleArticleIdClick(id)} onClick={() => handleArticleIdClick(id)}
> >
{id} {id}
</button> </p>
))} ))}
</div> </div>
)} )}

View File

@ -879,7 +879,7 @@ export default function FormVideo() {
{isGeneratedArticle && ( {isGeneratedArticle && (
<div className="mt-3 pb-0 flex flex-row "> <div className="mt-3 pb-0 flex flex-row ">
{articleIds.map((id: string, index: number) => ( {articleIds.map((id: string, index: number) => (
<button <p
key={index} key={index}
className={`mr-3 px-3 py-2 rounded-md ${ className={`mr-3 px-3 py-2 rounded-md ${
selectedArticleId === id selectedArticleId === id
@ -889,7 +889,7 @@ export default function FormVideo() {
onClick={() => handleArticleIdClick(id)} onClick={() => handleArticleIdClick(id)}
> >
{id} {id}
</button> </p>
))} ))}
</div> </div>
)} )}