Skip to content

Commit a37cb9a

Browse files
fixed app crash on missing styles
1 parent 15d1ed0 commit a37cb9a

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

client/packages/lowcoder-core/lib/index.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12148,6 +12148,7 @@ var Translator = /** @class */ (function () {
1214812148
// If still not found, return a default message or the key itself
1214912149
if (message === undefined) {
1215012150
console.warn("Translation missing for key: ".concat(key));
12151+
message = "oups! ".concat(key);
1215112152
}
1215212153
return message;
1215312154
};

client/packages/lowcoder-core/lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12140,6 +12140,7 @@ var Translator = /** @class */ (function () {
1214012140
// If still not found, return a default message or the key itself
1214112141
if (message === undefined) {
1214212142
console.warn("Translation missing for key: ".concat(key));
12143+
message = "oups! ".concat(key);
1214312144
}
1214412145
return message;
1214512146
};

client/packages/lowcoder-core/src/i18n/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export class Translator<Messages extends object> {
181181
// If still not found, return a default message or the key itself
182182
if (message === undefined) {
183183
console.warn(`Translation missing for key: ${key}`);
184-
`oups! ${key}`;
184+
message = `oups! ${key}`;
185185
}
186186

187187
return message;

client/packages/lowcoder/src/comps/comps/tableComp/mockTableComp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const tableInitValue = {
5252
const tableData = {
5353
...tableInitValue,
5454
data: JSON.stringify(i18nObjs.table.defaultData, null, " "),
55-
columns: i18nObjs.table.columns.map((t: { key: string; title: string | undefined; isTag: boolean | undefined; }) =>
55+
columns: i18nObjs.table.columns.map((t: any) =>
5656
newPrimaryColumn(t.key, calcColumnWidth(t.key, i18nObjs.table.defaultData), t.title, t.isTag)
5757
),
5858
};

0 commit comments

Comments
 (0)