Search(Playground) Action Row: Fix disabled option folder layout when sorting (#49182)

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
Maria Alexandra 2022-05-19 10:05:04 +02:00 committed by GitHub
parent 5b6d20fbce
commit d592d4dd73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ export const ActionRow: FC<Props> = ({
const layout = getValidQueryLayout(query);
// Disabled folder layout option when query is present
const disabledOptions = query.sort || query.query ? [SearchLayout.Folders] : [];
const disabledOptions = query.query ? [SearchLayout.Folders] : [];
return (
<div className={styles.actionRow}>