Skip to content

Commit

Permalink
Reword and extract var
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin940726 authored and glendaviesnz committed Jul 19, 2023
1 parent 8823605 commit cbe5884
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,12 @@ export default function PatternsList( { categoryId, type } ) {

const deferredSyncedFilter = useDeferredValue( syncFilter );

const isUncategorizedThemePatterns =
type === PATTERNS && categoryId === 'uncategorized';

const { patterns, isResolving } = usePatterns(
type,
type !== PATTERNS || categoryId !== 'uncategorized' ? categoryId : '',
isUncategorizedThemePatterns ? '' : categoryId,
{
search: deferredFilterValue,
syncStatus:
Expand Down

0 comments on commit cbe5884

Please sign in to comment.