mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
fix: dialog close on refresh (#1135)
Previously dialogs would be closed upon refocusing the browser tab due to router refetches occuring which would cause data-table columns to re-render. This is now resolved by extracting the column definitions outside of the returning render and into a memo hook.
This commit is contained in:
@ -170,7 +170,7 @@ msgstr "Checkbox"
|
||||
msgid "Checkbox values"
|
||||
msgstr "Checkbox values"
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:154
|
||||
#: packages/ui/primitives/data-table.tsx:156
|
||||
msgid "Clear filters"
|
||||
msgstr "Clear filters"
|
||||
|
||||
@ -393,7 +393,7 @@ msgstr "No recipients with this role"
|
||||
msgid "No restrictions"
|
||||
msgstr "No restrictions"
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:146
|
||||
#: packages/ui/primitives/data-table.tsx:148
|
||||
msgid "No results found"
|
||||
msgstr "No results found"
|
||||
|
||||
@ -567,7 +567,7 @@ msgstr "Some signers have not been assigned a signature field. Please assign at
|
||||
msgid "Something went wrong"
|
||||
msgstr "Something went wrong"
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:134
|
||||
#: packages/ui/primitives/data-table.tsx:136
|
||||
msgid "Something went wrong."
|
||||
msgstr "Something went wrong."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user