mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
Fixed bug
This commit is contained in:
parent
2b0cad2eb1
commit
ee78dbac68
1 changed files with 8 additions and 5 deletions
|
|
@ -6,12 +6,15 @@ const PartTag = ({ partID, search = false, addFilter, removeFilter}) => {
|
|||
const [isOutlined, setIsOutlined] = useState(false);
|
||||
|
||||
const handleClick = () => {
|
||||
setIsOutlined(prevState => !prevState);
|
||||
if (isOutlined){
|
||||
removeFilter(partID);
|
||||
} else {
|
||||
addFilter(partID);
|
||||
if (search){
|
||||
setIsOutlined(prevState => !prevState);
|
||||
if (isOutlined){
|
||||
removeFilter(partID);
|
||||
} else {
|
||||
addFilter(partID);
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
let backgroundColor = '';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue