Make updateUrl() only update Url

This commit is contained in:
Trevor Buckner
2026-11-18 22:23:48 +00:00
parent d2f0f067b3
commit da91e39d2a
3 changed files with 30 additions and 36 deletions
@@ -37,8 +37,6 @@ const BrewItem = ({
});
}, [brew, reportError]);
const updateFilter = useCallback((type, term)=>updateListFilter(type, term), [updateListFilter]);
const renderDeleteBrewLink = ()=>{
if(!brew.editId) return null;
@@ -132,7 +130,7 @@ const BrewItem = ({
<i className='fas fa-tags' />
{brew.tags.map((tag, idx)=>{
const matches = tag.match(/^(?:([^:]+):)?([^:]+)$/);
return <span key={idx} className={matches[1]} onClick={()=>updateFilter(tag)}>{matches[2]}</span>;
return <span key={idx} className={matches[1]} onClick={()=>updateListFilter(tag)}>{matches[2]}</span>;
})}
</div>
) : null}