mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
pretty print json
This commit is contained in:
1 parent
343622c880
commit
587d4dbef9
1 file changed
+1
-1
+1
-1
@@ -23,7 +23,7 @@ export const CompAdminPanel = ({
|
||||
dispatchPageState: (action: Action) => void;
|
||||
})=>{
|
||||
const history = useHistory();
|
||||
const exampleJSON = JSON.stringify(mapRequest(vstValues));
|
||||
const exampleJSON = JSON.stringify(mapRequest(vstValues), null, 4);
|
||||
const [jsonRequest, setJsonRequest] = useState<string>(exampleJSON);
|
||||
const handleSendRequest = ()=>{
|
||||
EnqueueVideoStyleTransfer(JSON.parse(jsonRequest)).then(res => {
|
||||
|
||||
Reference in new issue
Block a user