Commit 328f9fe
committed
Refactor SVG src assignment in componentWillLoad
Replaces repetitive property checks with a loop to assign SVG source properties to imageState, improving code maintainability and readability.1 parent 3e64d36 commit 328f9fe
File tree
1 file changed
+6
-9
lines changed- src/frontend/components/django-hstore-widget
1 file changed
+6
-9
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
63 | 60 | | |
64 | 61 | | |
65 | 62 | | |
| |||
0 commit comments