Skip to content

Commit

Permalink
Fix: Tweak section and tweaks inputs not working
Browse files Browse the repository at this point in the history
  • Loading branch information
igorrCarvalho authored and anovazzi1 committed Aug 21, 2023
1 parent e7f4329 commit d7f0ab9
Showing 1 changed file with 64 additions and 27 deletions.
91 changes: 64 additions & 27 deletions src/frontend/src/components/codeTabsComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -326,9 +330,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -371,9 +379,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -404,9 +416,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = e;
return newInputList;
Expand Down Expand Up @@ -495,9 +511,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -531,9 +551,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -583,9 +607,14 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[

newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -638,9 +667,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down Expand Up @@ -693,9 +726,13 @@ export default function CodeTabsComponent({
setData((old) => {
let newInputList =
cloneDeep(old);
newInputList![
index
].data.node.template[
newInputList!.find(
(obj) =>
obj.data.node
.template[
templateField
]
)!.data.node.template[
templateField
].value = target;
return newInputList;
Expand Down

0 comments on commit d7f0ab9

Please sign in to comment.