fixed search results after removing chips from effective message bundles (#26839)
Signed-off-by: Agnieszka Gancarczyk <agancarc@redhat.com> Co-authored-by: Agnieszka Gancarczyk <agancarc@redhat.com>
This commit is contained in:
parent
516bfbe896
commit
b7bb37867d
1 changed files with 10 additions and 0 deletions
|
@ -116,6 +116,16 @@ export const EffectiveMessageBundles = ({
|
|||
const loader = async () => {
|
||||
try {
|
||||
const filter = getValues();
|
||||
|
||||
const requiredKeys = ["theme", "themeType", "locale"];
|
||||
const shouldReturnEmpty = requiredKeys.some(
|
||||
(key) => !filter[key as keyof EffectiveMessageBundlesSearchForm],
|
||||
);
|
||||
|
||||
if (shouldReturnEmpty) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const messages = await adminClient.serverInfo.findEffectiveMessageBundles(
|
||||
{
|
||||
realm,
|
||||
|
|
Loading…
Reference in a new issue