You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/04/27 19:24:18 UTC

[GitHub] [airflow] staufferl16 commented on a diff in pull request #23290: Store grid view selection in url params

staufferl16 commented on code in PR #23290:
URL: https://github.com/apache/airflow/pull/23290#discussion_r860168119


##########
airflow/www/static/js/tree/api/useTasks.js:
##########
@@ -27,5 +27,8 @@ export default function useTasks(dagId) {
   return useQuery(
     ['tasks', dagId],
     () => axios.get(tasksUrl),
+    {
+      placeholderData: { tasks: [] },

Review Comment:
   Is this argument a default return value for the `useQuery` function?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org