Lee-W commented on code in PR #69702:
URL: https://github.com/apache/airflow/pull/69702#discussion_r3586048674


##########
airflow-core/src/airflow/ui/src/queries/useTrigger.ts:
##########
@@ -108,7 +108,10 @@ export const useTrigger = ({ dagId, onSuccessConfirm }: { 
dagId: string; onSucce
         data_interval_start: formattedDataIntervalStart,
         logical_date: formattedLogicalDate,
         note: checkNote,
-        partition_key: dagRunRequestBody.partitionKey ?? null,
+        partition_key:
+          dagRunRequestBody.partitionKey === undefined || 
dagRunRequestBody.partitionKey === ""

Review Comment:
   Extracted into `toNullablePartitionKey` in `src/utils/partitionKey.ts`, now 
shared by `useTrigger.ts` and both call sites in `CreateAssetEventModal.tsx`.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to