-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: preventing delete of fusion elements during fetch to fix race co…
…ndition * fix: adding ref for mounted component to fix issue where race condition was causing deleted elements to reappear * undoing mounted ref changes * undoing mounted ref changes * fix: preventing delete of fusion elements during fetch to fix race condition * fix: race condition causing elements to get re-added * removing file
- Loading branch information
1 parent
ce74f4b
commit c25747a
Showing
6 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
client/src/components/Pages/Structure/Input/StaticElement/StaticElement.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { BaseStructuralElementProps } from "../StructuralElementInputProps"; | ||
import CompInputAccordion from "../StructuralElementInputAccordion"; | ||
import StructuralElementInputAccordion from "../StructuralElementInputAccordion"; | ||
|
||
const StaticElement: React.FC<BaseStructuralElementProps> = ({ | ||
element, | ||
handleDelete, | ||
icon, | ||
}) => | ||
CompInputAccordion({ | ||
StructuralElementInputAccordion({ | ||
expanded: false, | ||
element, | ||
handleDelete, | ||
validated: true, | ||
icon, | ||
pendingResponse: false | ||
}); | ||
|
||
export default StaticElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters