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:
@ -175,7 +175,7 @@ msgstr ""
|
||||
msgid "Checkbox values"
|
||||
msgstr ""
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:154
|
||||
#: packages/ui/primitives/data-table.tsx:156
|
||||
msgid "Clear filters"
|
||||
msgstr ""
|
||||
|
||||
@ -398,7 +398,7 @@ msgstr ""
|
||||
msgid "No restrictions"
|
||||
msgstr ""
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:146
|
||||
#: packages/ui/primitives/data-table.tsx:148
|
||||
msgid "No results found"
|
||||
msgstr ""
|
||||
|
||||
@ -572,7 +572,7 @@ msgstr ""
|
||||
msgid "Something went wrong"
|
||||
msgstr ""
|
||||
|
||||
#: packages/ui/primitives/data-table.tsx:134
|
||||
#: packages/ui/primitives/data-table.tsx:136
|
||||
msgid "Something went wrong."
|
||||
msgstr ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user