# HG changeset patch
# User Frank Bessou <frank.bessou@logilab.fr>
# Date 1614176879 -3600
#      Wed Feb 24 15:27:59 2021 +0100
# Node ID 5f7a610e60d5c9087adf9d2f8d110681c9f585b5
# Parent  70c03510bc065bf65711916c16d4fa87b5683af9
fix: run prettier

diff --git a/packages/demo/src/App.tsx b/packages/demo/src/App.tsx
--- a/packages/demo/src/App.tsx
+++ b/packages/demo/src/App.tsx
@@ -24,7 +24,7 @@
 
 import { schema } from "./schema";
 
-export const MuseumShow = (props: ShowProps) => (
+const MuseumShow = (props: ShowProps) => (
   <Show {...props}>
     <SimpleShowLayout>
       <TextField source="id" />
@@ -63,7 +63,7 @@
   </List>
 );
 
-export const CityList = (props: ListProps) => (
+const CityList = (props: ListProps) => (
   <List {...props}>
     <Datagrid rowClick="show">
       <TextField source="id" />
@@ -73,15 +73,19 @@
   </List>
 );
 
-export const CityShow = (props: ShowProps) => (
+const CityShow = (props: ShowProps) => (
   <Show {...props}>
     <SimpleShowLayout>
       <TextField source="id" />
       <TextField source="name" />
       <NumberField source="zip_code" />
-      <ReferenceArrayField label="Museum" reference="Museum" source="reverse_is_in">
+      <ReferenceArrayField
+        label="Museum"
+        reference="Museum"
+        source="reverse_is_in"
+      >
         <Datagrid rowClick="show">
-          <TextField source="name"/>
+          <TextField source="name" />
         </Datagrid>
       </ReferenceArrayField>
     </SimpleShowLayout>
diff --git a/packages/ra-cubicweb/src/index.ts b/packages/ra-cubicweb/src/index.ts
--- a/packages/ra-cubicweb/src/index.ts
+++ b/packages/ra-cubicweb/src/index.ts
@@ -89,7 +89,9 @@
 
       // Getting subject relations
       const subjectRelations = Object.fromEntries(
-        Object.entries(schema.relationships).filter(
+        Object.entries(
+          schema.relationships
+        ).filter(
           ([_relationName, definition]: [string, S["relationships"][string]]) =>
             definition.subject.includes(resource)
         )
@@ -105,7 +107,9 @@
 
       // Getting object relations
       const objectRelations = Object.fromEntries(
-        Object.entries(schema.relationships).filter(
+        Object.entries(
+          schema.relationships
+        ).filter(
           ([_relationName, definition]: [string, S["relationships"][string]]) =>
             definition.object.includes(resource)
         )
@@ -132,17 +136,19 @@
         restrictions.push(`X ${key} ${variable}`);
       });
       const result = await rqlClient.queryRows(
-        `Any ${selection.join(",")} Where ${restrictions.join(",")}, X eid IN (${
-          params.ids.join(",")
-        })`
+        `Any ${selection.join(",")} Where ${restrictions.join(
+          ","
+        )}, X eid IN (${params.ids.join(",")})`
       );
-      const entities = result.map((row, rowIdx) => row.reduce(
-        (agg, attributeValue, idx) => ({
-          [attributesNames[idx]]: attributeValue,
-          ...agg,
-        }),
-        { id: params.ids[rowIdx] }
-      ));
+      const entities = result.map((row, rowIdx) =>
+        row.reduce(
+          (agg, attributeValue, idx) => ({
+            [attributesNames[idx]]: attributeValue,
+            ...agg,
+          }),
+          { id: params.ids[rowIdx] }
+        )
+      );
 
       return { data: entities };
     },