我试图在一页上使用相同的数据表,它有一个可用的过滤器,在主页上它不需要过滤器,但是一旦我从“传输”选项卡切换到“转换表”选项卡,该选项卡的状态会传递过滤值注释掉 我在标题中看到此错误取消注释注释掉的状态将删除该错误,但是否有更好的方法将过滤器值仅传递到一个表或任何想法为什么重组的开始和结束日期导致此错误?仅使用 2 个货币过滤器和状态过滤器,错误不会再次显示,仅在添加const [startDate, endDate] = filterValues?.dateRange
TypeError: (intermediate value)(intermediate value)(intermediate value) is not iterable
Run Code Online (Sandbox Code Playgroud)
该错误似乎仅在我在 ConvertHistoryTable 中传递解构的 startDate、endDate 后才会发生
const [startDate, endDate] = filterValues?.dateRange
Run Code Online (Sandbox Code Playgroud)
//ConvertHistoryTable
import React from 'react'
import { useNavigate } from 'react-router-dom'
import { format } from 'date-fns'
import TableCell from '@mui/material/TableCell'
import TableRow from '@mui/material/TableRow'
import IconButton from '@mui/material/IconButton'
import PreviewIcon from '@mui/icons-material/Preview'
// components
import QueryHolder from 'components/ContentWrapper/QueryHolder'
import StaticTable from 'components/Table/StaticTable'
import NumericCell from 'components/Table/cell/NumericCell'
import { TransactionTypeCell } from 'components/Table/cell/TypeCells' …
Run Code Online (Sandbox Code Playgroud) Nextjs 博客应用程序
目前看到:
Application error: a client-side exception has occurred (see the browser console for more information).
我在 AWS Amplify 控制台上的部署中创建帖子时看到上述错误,并且 DynamoDB 无法重定向到提交时创建的帖子,但我可以在提交时在本地查看该帖子。这些错误仅在部署到 DynamoDB 后才会出现。
非常感谢任何关于为什么会发生这种情况的指示。
///create-post.js
import { withAuthenticator } from '@aws-amplify/ui-react'
import { useState, useRef } from 'react'
import { API, Storage } from 'aws-amplify'
import { v4 as uuid } from 'uuid'
import { useRouter } from 'next/router'
import SimpleMDE from "react-simplemde-editor"
import "easymde/dist/easymde.min.css"
import { createPost } from '../graphql/mutations'
import MySelect from '../components/Autocomplete'
import { useForm …
Run Code Online (Sandbox Code Playgroud)