Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Oct 19, 2023
1 parent c2d9b39 commit b3026a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@leuffen/jodastyle",
"version": "3.0.6",
"version": "3.0.7",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.module.js",
Expand Down
2 changes: 1 addition & 1 deletion src/helper/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function copyDataChildAttributes(source : HTMLElement, target : HTMLElement) {
let slotIndex = 0;
export async function getTemplateFilledWithContent(templateSelector : string, content : HTMLElement, origElement : HTMLElement) : Promise<DocumentFragment> {
let templateConfig = Joda.getRegisteredTemplate(templateSelector);
let templateHtml = templateConfig.template ?? null;
let templateHtml = templateConfig?.template ?? null;

if (templateHtml === null) {
let template = document.querySelector<HTMLTemplateElement>(templateSelector);
Expand Down

0 comments on commit b3026a2

Please sign in to comment.