Remove toast error (#1231)
This commit is contained in:
parent
35be035850
commit
569d0448c2
|
@ -121,7 +121,7 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
|
||||||
const imageUploadRef = useRef(null)
|
const imageUploadRef = useRef(null)
|
||||||
const previousTab = useRef(tab)
|
const previousTab = useRef(tab)
|
||||||
const { merge, setDisabled: setSubmitDisabled } = useFeeButton()
|
const { merge, setDisabled: setSubmitDisabled } = useFeeButton()
|
||||||
const toaster = useToast()
|
|
||||||
const [updateImageFeesInfo] = useLazyQuery(gql`
|
const [updateImageFeesInfo] = useLazyQuery(gql`
|
||||||
query imageFeesInfo($s3Keys: [Int]!) {
|
query imageFeesInfo($s3Keys: [Int]!) {
|
||||||
imageFeesInfo(s3Keys: $s3Keys) {
|
imageFeesInfo(s3Keys: $s3Keys) {
|
||||||
|
@ -135,7 +135,6 @@ export function MarkdownInput ({ label, topLevel, groupClassName, onChange, onKe
|
||||||
nextFetchPolicy: 'no-cache',
|
nextFetchPolicy: 'no-cache',
|
||||||
onError: (err) => {
|
onError: (err) => {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
toaster.danger(`unabled to get image fees: ${err.message || err.toString?.()}`)
|
|
||||||
},
|
},
|
||||||
onCompleted: ({ imageFeesInfo }) => {
|
onCompleted: ({ imageFeesInfo }) => {
|
||||||
merge({
|
merge({
|
||||||
|
|
Loading…
Reference in New Issue