@@ -90,38 +90,32 @@ export const linearCreateCustomerTool: ToolConfig<
9090 }
9191
9292 // Optional fields with proper validation
93- if (
94- params . domains !== undefined &&
95- params . domains !== null &&
96- Array . isArray ( params . domains ) &&
97- params . domains . length > 0
98- ) {
93+ if ( params . domains != null && Array . isArray ( params . domains ) && params . domains . length > 0 ) {
9994 input . domains = params . domains
10095 }
10196 if (
102- params . externalIds !== undefined &&
103- params . externalIds !== null &&
97+ params . externalIds != null &&
10498 Array . isArray ( params . externalIds ) &&
10599 params . externalIds . length > 0
106100 ) {
107101 input . externalIds = params . externalIds
108102 }
109- if ( params . logoUrl !== undefined && params . logoUrl !== null && params . logoUrl !== '' ) {
103+ if ( params . logoUrl != null && params . logoUrl !== '' ) {
110104 input . logoUrl = params . logoUrl
111105 }
112- if ( params . ownerId !== undefined && params . ownerId !== null && params . ownerId !== '' ) {
106+ if ( params . ownerId != null && params . ownerId !== '' ) {
113107 input . ownerId = params . ownerId
114108 }
115- if ( params . revenue !== undefined && params . revenue !== null ) {
109+ if ( params . revenue != null ) {
116110 input . revenue = params . revenue
117111 }
118- if ( params . size !== undefined && params . size !== null ) {
112+ if ( params . size != null ) {
119113 input . size = params . size
120114 }
121- if ( params . statusId !== undefined && params . statusId !== null && params . statusId !== '' ) {
115+ if ( params . statusId != null && params . statusId !== '' ) {
122116 input . statusId = params . statusId
123117 }
124- if ( params . tierId !== undefined && params . tierId !== null && params . tierId !== '' ) {
118+ if ( params . tierId != null && params . tierId !== '' ) {
125119 input . tierId = params . tierId
126120 }
127121
0 commit comments