Skip to content

Commit

Permalink
Fix pass view name in dashlet record view
Browse files Browse the repository at this point in the history
Fixes #117
  • Loading branch information
itsmemyk08 committed Jun 12, 2023
1 parent 5a3801f commit c0352b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions axelor-front/src/views/grid/grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,11 +186,12 @@ function GridInner(props: ViewProps<GridView>) {
showEditor({
model: view.model!,
title: view.title ?? "",
viewName: (action.views?.find((v) => v.type === "form") || {})?.name,
record,
readonly,
});
},
[view, showEditor]
[view, action, showEditor]
);

const onEditInDashlet = useCallback(
Expand Down Expand Up @@ -577,7 +578,7 @@ function GridInner(props: ViewProps<GridView>) {
setState?.((draft) => {
const row = draft.selectedRows?.[0];
if (row != null) {
const col = draft.selectedCell?.[1] ?? 0
const col = draft.selectedCell?.[1] ?? 0;
draft.selectedCell = [row, col];
} else {
draft.selectedCell = [0, 0];
Expand Down

0 comments on commit c0352b2

Please sign in to comment.