Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 6a0aed4

Browse files
authored
Adds hotfix (#40)
1 parent 0f20583 commit 6a0aed4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/app/projects/components/project-settings/project-settings.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ export class ProjectSettingsComponent implements OnInit, OnDestroy, AfterViewIni
164164
}));
165165

166166
const openModal = JSON.parse(localStorage.getItem("openModal"));
167-
if(openModal) {
168-
const subscription = interval(250).subscribe(()=> {
169-
if(this.myModalnewRecordTask) {
167+
if (openModal) {
168+
const subscription = interval(250).subscribe(() => {
169+
if (this.myModalnewRecordTask) {
170170
this.myModalnewRecordTask.nativeElement.checked = true;
171171
localStorage.removeItem("openModal");
172172
subscription.unsubscribe();
@@ -274,6 +274,7 @@ export class ProjectSettingsComponent implements OnInit, OnDestroy, AfterViewIni
274274
[this.attributesQuery$, attributes$] = this.projectApolloService.getAttributesByProjectId(projectId);;
275275
this.subscriptions$.push(attributes$.subscribe((attributes) => {
276276
this.attributes = attributes;
277+
this.attributesArrayText = [];
277278
this.attributesArray.clear();
278279
attributes.forEach((att) => {
279280
let group = this.formBuilder.group({

0 commit comments

Comments
 (0)