Skip to content

Commit

Permalink
fix: close TranslationDialog after saving a translation (#2245)
Browse files Browse the repository at this point in the history
This is the same behaviour as in the apps.
  • Loading branch information
edoardo authored Mar 15, 2023
1 parent afbfc74 commit 295acb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/edit/ActionsBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,10 @@ const EditBar = ({ dashboard, ...props }) => {
translationDlgIsOpen ? (
<TranslationDialog
className="translation-dialog"
onClose={toggleTranslationDialog}
objectToTranslate={dashboard}
fieldsToTranslate={fieldsToTranslate}
onTranslationSaved={Function.prototype}
onClose={toggleTranslationDialog}
onTranslationSaved={toggleTranslationDialog}
/>
) : null

Expand Down

0 comments on commit 295acb3

Please sign in to comment.