Skip to content

Commit 0106b75

Browse files
committed
[fix] [boostcamp-2020#161] manageCategories파일에서 labelIcon부분이 잘못 구현되어있었음
- labelIcon이 잘못 구현되어 있었다. - defaultStyle과 inputStyle이 반대로 되어있었고, 결과가 할당되지 않았다
1 parent abfc05c commit 0106b75

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/store/style/manageCategories.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ export const combineElement = ({
2323
const elements = Object.keys(elementStyle);
2424
elements.forEach((element) => {
2525
switch (element) {
26-
case ElementNameType.labelIcon:
27-
combineStyle({
28-
style: update[element] as StyleActionPayload,
29-
defaultStyle: elementStyle[element] as StyleType,
26+
case ElementNameType.labelIcon: {
27+
update[element] = combineStyle({
28+
style: elementStyle[element] as StyleActionPayload,
29+
defaultStyle: update[element] as StyleType,
3030
});
3131
break;
32+
}
3233
case ElementNameType.section:
3334
case ElementNameType.labelText:
3435
update[element] = combineSubElement({

0 commit comments

Comments
 (0)