Skip to content

Commit 1ca1c0a

Browse files
committed
fix: jsx values not applied properly if they have spaces
1 parent 82e9561 commit 1ca1c0a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

definitions/interfaces/collections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class Collections {
1313
static Notes = 'notes';
1414

1515
static HistorySub(collection: string, docId?: string) {
16-
return `${collection}/${docId || '{{docId}}'}/${Collections.History}`;
16+
return `${collection}/${docId || '{docId}'}/${Collections.History}`;
1717
}
1818

1919
static get UserHistory() {

definitions/jsx.compiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ JSX.createElement = (name: string, props: {[id: string]: string}, ...content: st
2727
prop = 'class';
2828
}
2929

30-
proccessed.push(`${prop}=${value}`);
30+
proccessed.push(`${prop}="${value}"`);
3131
}
3232

3333
return `<${name} ${proccessed.join(' ')}> ${content.join('')}</${name}>`;

0 commit comments

Comments
 (0)