Skip to content

Commit

Permalink
quick fix - refresh editor when same statement edited in detail, remo…
Browse files Browse the repository at this point in the history
…ve editor breadcrumb loader
  • Loading branch information
Ptrhnk committed Oct 30, 2023
1 parent 139a1b2 commit e6c7a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,10 @@ export const EntityDetail: React.FC<EntityDetail> = ({ 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"]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,6 @@ export const StatementEditor: React.FC<StatementEditor> = ({
)}
</>
)}
<Loader size={20} show={isFetchingTerritory} />
</StyledBreadcrumbWrap>
)}
</StyledEditorPreSection>
Expand Down

0 comments on commit e6c7a1f

Please sign in to comment.