Skip to content

P0072 | Orginazation details script#425

Merged
prakharlowanshi11 merged 2 commits intomainfrom
P0072-clean
Feb 23, 2026
Merged

P0072 | Orginazation details script#425
prakharlowanshi11 merged 2 commits intomainfrom
P0072-clean

Conversation

@Chandan-walker
Copy link
Collaborator

No description provided.

Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other comments (11)

💡 To request another review, post a new comment with "/windsurf-review".

Comment on lines 33 to +34
authToken:
'clV0YUt4UURVbzJYZTRwMHdBNkZ6QjZoay9qMmRRcjZhMGVXMGtCT1ZtdGNaelFxMmlNaGdNcEJuRy9UWmFSZHQvMHc0YnJYUHExakh5NDNGVjZMOEdXVmg3OG82R094Yk5tdE9XckxjUTV1dlNzUERXRWxaOWIwWm5JRmlMVHl5UmpZUHVDK2piOURJUi9IdytncFZBRWc5QnRyRDRVeUFOZlBCY1FST0FOZStISUVtK055VWNxaGduZWpGeUZxVWxYWjd6YXI2YTF0aGxHZTNka1BlQT09',
'ZVlWU2U4cnlOVUh5M1lYcTZLUUVaczZGdFlHN2lKOXNIU24rTWx3WWpnQzE5YXJVaTF0R215UkEvNGpIS2tJVC83Q01EQlk2QWZ6Z1UxYlQvZCtSeThxdDdiUHVuNm9RbVhPNDVnTFFUN3dKZkRIT294a3BvWFFNSGIxUFV6Wk5yZkpmYXk0MzVmUzlrTXp1bkRYTkRUdzBKMW9yRi8vTDgrak9ESzlKblVXU1hvWCtHSytkaW9nemYxTTFwNEVPSThlNk9ZRXd0YTJUanJqRk1sZUdGUT09',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR includes what appears to be an authentication token directly in the source code. Credentials should not be stored in the codebase, even for non-production environments. Consider using environment variables or a secure credential management system instead.

Comment on lines +157 to +159
<mat-error *ngIf="organizationForm.get('timezone')?.hasError('required')">
Timezone is required.
</mat-error>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a mismatch between the form control name in the error message and the actual form control. The error checks for organizationForm.get('timezone') but the form control is named timeZoneName.

Suggested change
<mat-error *ngIf="organizationForm.get('timezone')?.hasError('required')">
Timezone is required.
</mat-error>
<mat-error *ngIf="organizationForm.get('timeZoneName')?.hasError('required')">
Timezone is required.
</mat-error>

Comment on lines +82 to +88
.subscribe({
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = res.data;
}
},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a potential issue in the getTimezones response handling. You check if raw is an array but then use res.data directly. If res doesn't have a data property and the value is directly in res, this could lead to undefined access.

Suggested change
.subscribe({
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = res.data;
}
},
next: (res) => {
const raw = res?.data ?? res;
if (Array.isArray(raw)) {
this.timezones = raw;
}
},

@prakharlowanshi11 prakharlowanshi11 merged commit 6434016 into main Feb 23, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants