fix(guides) : enable extra section on save
This commit is contained in:
@@ -339,7 +339,7 @@ export async function saveExtraSection(
|
||||
const updated = await advanceGuideVersion(tx, guideId, data.expectedVersion, false, `extra:${sectionId}`, details);
|
||||
await tx
|
||||
.update(guideSections)
|
||||
.set({ title: data.section.title })
|
||||
.set({ title: data.section.title, enabled: true })
|
||||
.where(eq(guideSections.id, sectionId));
|
||||
await tx.delete(extraSectionRows).where(eq(extraSectionRows.sectionId, sectionId));
|
||||
if (data.section.rows.length) {
|
||||
|
||||
Reference in New Issue
Block a user