fix: fix typo and remove log

This commit is contained in:
Antonella Sgarlatta
2021-06-01 18:36:20 -03:00
parent a72815acbd
commit 8bcd8c31c9

View File

@@ -99,7 +99,6 @@ const NoteTags = observer(({ application, appState }: Props) => {
}
const { offsetLeft: lastVisibleTagLeft, clientWidth: lastVisibleTagWidth } =
tagsRef.current[lastVisibleTagIndex];
console.log(tagsRef.current[0].offsetLeft);
setOverflowCountPosition(lastVisibleTagLeft + lastVisibleTagWidth);
}, [lastVisibleTagIndex, tagsContainerExpanded]);
@@ -122,7 +121,7 @@ const NoteTags = observer(({ application, appState }: Props) => {
]);
useEffect(() => {
reloadTagsContainerLayout;
reloadTagsContainerLayout();
}, [
reloadTagsContainerLayout,
tags,