Skip to content

Commit 143f39e

Browse files
authored
destructed title
1 parent ff3d219 commit 143f39e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/app/containers/HeadContainer.jsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ import { useStoreContext } from '../store';
66
function HeadContainer() {
77
const [store] = useStoreContext();
88
const { tabs, currentTab } = store;
9-
// eslint-disable-next-line prefer-destructuring
10-
const title = tabs[currentTab].title;
11-
// console.log('tabs', tabs);
12-
// console.log('currentTab', currentTab);
9+
const { title } = tabs[currentTab];
1310
return (
1411
<div className="head-container">
1512
<SwitchAppDropdown />

0 commit comments

Comments
 (0)