Merge pull request #11443 from nixocio/ui_issue_11442

Fix extra requests when creating WorkFlowJobTemplate
This commit is contained in:
Kersom 2021-12-13 09:12:27 -05:00 committed by GitHub
commit d2f316c484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);