Skip to content

Commit 45e2a10

Browse files
authored
Fix undefined expression handling in mini editor and update package version to 1.27 (#199)
1 parent 4c5a7cf commit 45e2a10

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

docs/public/packages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"packageId": "04tRb0000034Z5VIAU",
2+
"packageId": "04tRb0000034eMvIAI",
33
"componentPackageId": "04tRb0000012Mv8IAE"
44
}

expression-src/main/editor/lwc/miniEditor/miniEditor.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ export default class MiniEditor extends LightningElement {
3737
});
3838

3939
function filter(expression) {
40+
if (!expression) {
41+
return data;
42+
}
43+
4044
const rightmostWord = expression.split(" ").pop() ?? expression;
4145
const filteredData = data
4246
.map((category) => {

sfdx-project_packaging.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"path": "expression-src",
55
"package": "Expression",
6-
"versionName": "Version 1.26",
7-
"versionNumber": "1.26.0.NEXT",
6+
"versionName": "Version 1.27",
7+
"versionNumber": "1.27.0.NEXT",
88
"default": false,
99
"versionDescription": "Expression core language",
1010
"ancestorVersion": "HIGHEST"
@@ -55,6 +55,7 @@
5555
"Expression@1.23.0-4": "04tRb000002tZ8rIAE",
5656
"Expression@1.24.0-2": "04tRb000002yfDdIAI",
5757
"Expression@1.25.0-2": "04tRb0000034Z5VIAU",
58-
"Expression@1.26.0-2": "04tRb0000034ahVIAQ"
58+
"Expression@1.26.0-2": "04tRb0000034ahVIAQ",
59+
"Expression@1.27.0-2": "04tRb0000034eMvIAI"
5960
}
6061
}

0 commit comments

Comments
 (0)