How do I remove this general condition property and just use sphere and shape id to fetch it from the Graphql query?
Assistant:
To remove the general condition property and instead use sphere_id and shape_id directly in your GraphQL query within the DashboardNewTablePosts component, you'll need to update the GraphQL query to accept these new variables. Here's a step-by-step guide on how to achieve this:
Step 1: Modify the GraphQL Query
First, modify your GraphQL query to accept sphere_id and shape_id as variables instead of the condition object.
For instance, if your original query looks like this:
Ensure that sphere_id and shape_id are correctly being passed as props to the DashboardNewTablePosts component in your DashboardNewTables component or wherever it is being used.
Step 4: Testing
After making these changes, test your application to verify that the data is being fetched correctly and the export functionality works as expected. Keep an eye out for any TypeScript errors and resolve them accordingly.
This approach should align your component logic with using sphere_id and shape_id directly for fetching data instead of the general condition property.