I apologize for the inconvenience. It seems there might be an issue with accessing the properties of the response. Let’s add a check to ensure the response object is defined before accessing its properties. Please update your code with the following changes: ```
import { axios } from “@pipedream/platform”; export default defineComponent({ props: { google_tasks: { type: “app”, app: “google_tasks”, }, notion: { type: “app”, app: “notion”, }, task_list_id: { type: “string”, label: “Task List ID”, }, notion_page_id: { type: “string”, label: “Notion Page ID”, }, }, async run({ steps, $ }) { // Fetch the Notion task details const notionTaskResponse = await axios(this, { method: “GET”, url: https://api.notion.com/v1/pages/${this.notion_page_id}, headers: { Authorization: Bearer ${this.notion.$auth.oauth_access_token}, “Notion-Version”: “2021-08-16”, }, }); if (notionTaskResponse && notionTaskResponse.data && notionTaskResponse.data.properties) { // Check if the task is marked as complete in Notion const notionTaskStatus = notionTaskResponse.data.properties.Status.select.name; if (notionTaskStatus === “completed”) { // Update the task status in Google Tasks const response = await axios(this, { method: “PATCH”, url: https://tasks.googleapis.com/tasks/v1/lists/${this.task_list_id}/tasks/${this.notion_page_id}, headers: { Authorization: Bearer ${this.google_tasks.$auth.oauth_access_token}, “Content-Type”: “application/json”, }, data: { status: “completed”, }, }); return response.data; } else { console.log(“Task is not marked as complete in Notion”); } } else { console.log(“Error: Notion task response is not properly defined”); } }, });