mirror of
https://github.com/ansible/awx.git
synced 2026-01-20 14:11:24 -03:30
Fix extra requests when creating WorkFlowJobTemplate
Fix extra requests when creating WorkFlowJobTemplate See: https://github.com/ansible/awx/issues/11442
This commit is contained in:
parent
21895bd09b
commit
70e832d4db
@ -1,8 +1,8 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
function AppendBody({ children }) {
|
||||
const el = document.createElement('div');
|
||||
const [el] = useState(document.createElement('div'));
|
||||
|
||||
useEffect(() => {
|
||||
document.body.appendChild(el);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user