d1-northwind icon indicating copy to clipboard operation
d1-northwind copied to clipboard

Issue with loading the demo

Open alireza-ahmadi opened this issue 2 years ago • 0 comments

It seems that there is an error the in the deployment of the worker. When I try to open the demo I get this error:

CleanShot 2023-08-26 at 18 49 28@2x

A few notes:

  • The demo works fine locally
  • Current implementation can be improved by checking whether the server response exists or not, before checking its length (see below). However, that won't fix the core issue.
const Suppliers = () => {
  // some component logic
  return (
    <>
-      {suppliers.length ? (
+      {suppliers?.length ? (
        <div className="card has-table">

alireza-ahmadi avatar Aug 26 '23 15:08 alireza-ahmadi