Skip to content

Commit a79841f

Browse files
committed
docs: simplify encoding exapmple for query values in docs
1 parent 49f9a34 commit a79841f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

adminforth/documentation/docs/tutorial/03-Customization/13-standardPagesTuning.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ Sometimes you might need to create a link that will open the create form with so
555555
resourceId: 'aparts',
556556
},
557557
query: {
558-
values: encodeURIComponent(JSON.stringify({
558+
values: (JSON.stringify({
559559
realtor_id: coreStore?.adminUser.dbUser.id
560560
})),
561561
},
@@ -586,11 +586,11 @@ ALso if you want to disable ability to change such fields (but keep them as read
586586
resourceId: 'aparts',
587587
},
588588
query: {
589-
values: encodeURIComponent(JSON.stringify({
589+
values: (JSON.stringify({
590590
realtor_id: coreStore?.adminUser.dbUser.id
591591
})),
592592
//diff-add
593-
readonlyColumns: encodeURIComponent(JSON.stringify(['realtor_id'])),
593+
readonlyColumns: (JSON.stringify(['realtor_id'])),
594594
},
595595
}"
596596
>

0 commit comments

Comments
 (0)