🐛 Fix router directory row (#409)
This commit is contained in:
@@ -383,9 +383,9 @@ export default memo(
|
|||||||
}
|
}
|
||||||
item={child}
|
item={child}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// const route = RouterServices.generateRouteFromState({dirId: child.id});
|
const route = RouterServices.generateRouteFromState({dirId: child.id});
|
||||||
// history.push(route);
|
history.push(route);
|
||||||
return setParentId(child.id);
|
//return setParentId(child.id);
|
||||||
}}
|
}}
|
||||||
checked={checked[child.id] || false}
|
checked={checked[child.id] || false}
|
||||||
onCheck={v =>
|
onCheck={v =>
|
||||||
|
|||||||
@@ -33,14 +33,15 @@ export default ({
|
|||||||
inTrash={inTrash || false}
|
inTrash={inTrash || false}
|
||||||
path={path}
|
path={path}
|
||||||
onClick={(viewId, dirId) => {
|
onClick={(viewId, dirId) => {
|
||||||
/*history.push(
|
history.push(
|
||||||
RouterServices.generateRouteFromState({
|
RouterServices.generateRouteFromState({
|
||||||
companyId: company,
|
companyId: company,
|
||||||
viewId,
|
viewId,
|
||||||
dirId,
|
dirId,
|
||||||
}),
|
}),
|
||||||
);*/
|
);
|
||||||
setParentId(dirId ? dirId : viewId);
|
console.log("viewId changed now setting the parentId")
|
||||||
|
// setParentId(dirId ? dirId : viewId);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user