fix
This commit is contained in:
@@ -59,7 +59,7 @@
|
|||||||
const onClickStyle = (value: string) => {
|
const onClickStyle = (value: string) => {
|
||||||
if (data.styles.includes(value)) {
|
if (data.styles.includes(value)) {
|
||||||
data.styles = data.styles.filter((v) => v !== value)
|
data.styles = data.styles.filter((v) => v !== value)
|
||||||
} else {
|
} else if(data.styles.length < 5){
|
||||||
data.styles.push(value)
|
data.styles.push(value)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user