FormArray
class has removeAt
which takes the index. If you do not know the index, you can do a workaround:this.images.removeAt(this.images.value.findIndex(image => image.id === 502))
FormArray
class has removeAt
which takes the index. If you do not know the index, you can do a workaround:this.images.removeAt(this.images.value.findIndex(image => image.id === 502))
import React , { useEffect , useRef } from "react" import { StaticImage } from "gatsby-plugin-image" impor...
Không có nhận xét nào:
Đăng nhận xét