fix(label): data bug
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { useCallback } from "react"
|
||||
import paper from "paper"
|
||||
import { useLabelStore } from "./store"
|
||||
import { useBottomToolsStore } from "./useBottomToolsStore"
|
||||
@@ -14,7 +15,7 @@ export const removeTagTexts = (id?: number) => {
|
||||
}
|
||||
|
||||
const useRenderTag = () => {
|
||||
const renderTag = () => {
|
||||
const renderTag = useCallback(() => {
|
||||
const dataMap = useLabelStore.getState().label
|
||||
const activeImage = useBottomToolsStore.getState().activeImage
|
||||
const group = usePaperStore.getState().group
|
||||
@@ -155,7 +156,7 @@ const useRenderTag = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, [])
|
||||
|
||||
return {
|
||||
renderTag,
|
||||
|
||||
Reference in New Issue
Block a user