Skip to content

Commit 1df1e01

Browse files
committed
fixing for lint
1 parent 57746d8 commit 1df1e01

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

components/dash-core-components/src/components/Tabs.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,4 +440,4 @@ Tabs.propTypes = {
440440
persistence_type: PropTypes.oneOf(['local', 'session', 'memory']),
441441
};
442442

443-
Tabs.childrenLayoutHashes = true
443+
Tabs.childrenLayoutHashes = true;

dash/dash-renderer/src/wrapper/selectors.ts

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import {DashLayoutPath, DashComponent, BaseDashProps} from '../types/component';
2-
import {getComponentLayout, stringifyPath, checkChildrenLayoutHashes} from './wrapping';
3-
import {pathOr} from 'ramda'
2+
import {
3+
getComponentLayout,
4+
stringifyPath,
5+
checkChildrenLayoutHashes
6+
} from './wrapping';
7+
import {pathOr} from 'ramda';
48

59
type SelectDashProps = [DashComponent, BaseDashProps, number, object, string];
610

@@ -10,17 +14,20 @@ interface ChangedPropsRecord {
1014
renderType: string;
1115
}
1216

13-
const previousHashes = {}
17+
const previousHashes = {};
1418

15-
function determineChangedProps(state: any, strPath: string): ChangedPropsRecord {
19+
function determineChangedProps(
20+
state: any,
21+
strPath: string
22+
): ChangedPropsRecord {
1623
let combinedHash = 0;
17-
let renderType = 'update'; // Default render type, adjust as needed
24+
const renderType = 'update'; // Default render type, adjust as needed
1825
Object.entries(state.layoutHashes).forEach(([updatedPath, pathHash]) => {
1926
if (updatedPath.startsWith(strPath)) {
2027
const previousHash: any = pathOr({}, [updatedPath], previousHashes);
21-
combinedHash += pathOr(0, ['hash'], pathHash)
28+
combinedHash += pathOr(0, ['hash'], pathHash);
2229
if (previousHash !== pathHash) {
23-
previousHash[updatedPath] = pathHash
30+
previousHash[updatedPath] = pathHash;
2431
}
2532
}
2633
});
@@ -43,7 +50,7 @@ export const selectDashProps =
4350

4451
let hash;
4552
if (checkChildrenLayoutHashes(c)) {
46-
hash = determineChangedProps(state, strPath)
53+
hash = determineChangedProps(state, strPath);
4754
} else {
4855
hash = state.layoutHashes[strPath];
4956
}

0 commit comments

Comments
 (0)