diff --git a/packages/client/src/pages/MainPage/containers/EntityDetailBox/EntityDetail/EntityDetail.tsx b/packages/client/src/pages/MainPage/containers/EntityDetailBox/EntityDetail/EntityDetail.tsx index cd3962b8e..a518c4c65 100644 --- a/packages/client/src/pages/MainPage/containers/EntityDetailBox/EntityDetail/EntityDetail.tsx +++ b/packages/client/src/pages/MainPage/containers/EntityDetailBox/EntityDetail/EntityDetail.tsx @@ -230,9 +230,10 @@ export const EntityDetail: React.FC = ({ detailId }) => { if ( statementId && - statement?.entities && - entity && - Object.keys(statement.entities).includes(entity.id) + (statementId === entity?.id || + (statement?.entities && + entity && + Object.keys(statement.entities).includes(entity.id))) ) { queryClient.invalidateQueries(["statement"]); } diff --git a/packages/client/src/pages/MainPage/containers/StatementEditorBox/StatementEditor/StatementEditor.tsx b/packages/client/src/pages/MainPage/containers/StatementEditorBox/StatementEditor/StatementEditor.tsx index 371d29fce..5afcd1aeb 100644 --- a/packages/client/src/pages/MainPage/containers/StatementEditorBox/StatementEditor/StatementEditor.tsx +++ b/packages/client/src/pages/MainPage/containers/StatementEditorBox/StatementEditor/StatementEditor.tsx @@ -612,7 +612,6 @@ export const StatementEditor: React.FC = ({ )} )} - )}