Skip to content

Commit

Permalink
Merge pull request #1398 from OpenSignLabs/validation
Browse files Browse the repository at this point in the history
fix: template variable is not define in draft template
  • Loading branch information
nxglabs authored Oct 29, 2024
2 parents 32eba21 + c3564b1 commit ff085b1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ export default async function draftTemplate(request, response) {
object.set('ExtUserPtr', extUserPtr);
object.set('IsEnableOTP', isEnableOTP);
object.set('IsTourEnabled', isTourEnabled);
const Public = isPublic !== undefined ? template?.IsPublic : false;
if (template?.IsPublic !== undefined) {
const Public = isPublic !== undefined ? isPublic : false;
if (isPublic !== undefined) {
object.set('IsPublic', Public);
}
let contact = [];
Expand Down

0 comments on commit ff085b1

Please sign in to comment.