We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f86f73 commit b703be1Copy full SHA for b703be1
src/Group.tsx
@@ -11,6 +11,12 @@ export default function Group({ nodeName, children }: INode) {
11
>
12
{({ data }) => {
13
const frame = data.file.pages[0].frames[0]
14
+ if (!frame.children.length) {
15
+ console.warn(
16
+ `No children returned from the query. Check if Figma file has a corresponding layer with name ${nodeName}`
17
+ )
18
+ return null
19
+ }
20
const { size, position } = frame.children[0]
21
22
const styles = {
0 commit comments