Skip to content

Commit c0dff35

Browse files
committed
Fixed changes that were accidental reverts from #124
1 parent 1b60a1b commit c0dff35

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/editor/extended_python_generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export class ExtendedPythonGenerator extends PythonGenerator {
270270
}
271271
});
272272
if (exported) {
273-
const variableName = variableModel.name;
273+
const variableName = variableModel.getName();
274274
const actualVariableName = super.getVariableName(variableModel.getId());
275275
const getPythonModuleVariableBlock = {
276276
'kind': 'block',

src/reportWebVitals.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const reportWebVitals = (onPerfEntry?: (metric: any) => void) => {
22
if (onPerfEntry && onPerfEntry instanceof Function) {
3-
import('web-vitals').then(({ getCLS, getFCP, getLCP, getTTFB }) => {
4-
getCLS(onPerfEntry);
5-
getFCP(onPerfEntry);
6-
getLCP(onPerfEntry);
7-
getTTFB(onPerfEntry);
8-
});
3+
import('web-vitals').then(({ onCLS, onINP, onFCP, onLCP, onTTFB }) => {
4+
onCLS(onPerfEntry);
5+
onINP(onPerfEntry);
6+
onFCP(onPerfEntry);
7+
onLCP(onPerfEntry);
8+
onTTFB(onPerfEntry);
99
}
1010
};
1111

0 commit comments

Comments
 (0)