superside-oss / sanity-copy-paste

MIT License
8 stars 1 forks source link

Error: Cannot read properties of undefined (reading 'find') #2

Open amaxalov opened 1 year ago

amaxalov commented 1 year ago

image I guess in components/CopyPasteInput.tsx need add some try catch or another condition "dependencies": { "@sanity/vision": "3.11.1", "@superside-oss/sanity-plugin-copy-paste": "1.0.1", "react": "18.2.0", "react-dom": "18.2.0", "react-is": "18.2.0", "sanity": "3.11.1", "sanity-plugin-media": "2.0.5", "slug": "8.2.2", "styled-components": "5.3.9" }, "devDependencies": { "@sanity/eslint-config-studio": "2.0.1", "@types/react": "18.0.25", "@types/slug": "5.0.3", "@types/styled-components": "5.1.26", "eslint": "8.6.0", "eslint-config-prettier": "8.6.0", "eslint-plugin-prettier": "4.2.1", "prettier": "2.8.7", "typescript": "4.9.4", "vite-plugin-node-polyfills": "^0.8.2" }

dnzg commented 1 year ago

Hey @amaxalov! I've updated the plugin, could you please test it once again?