diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 2fe3c763ea..6671ef0b56 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -15,7 +15,7 @@ jobs: check-pr-status: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/check-pr-status security-lockfile-analysis: runs-on: ubuntu-latest diff --git a/packages/generators/generators/lib/files/ts/plugin/admin/src/components/Initializer/index.tsx b/packages/generators/generators/lib/files/ts/plugin/admin/src/components/Initializer/index.tsx index 09d4a346f5..7f4d42aa2f 100644 --- a/packages/generators/generators/lib/files/ts/plugin/admin/src/components/Initializer/index.tsx +++ b/packages/generators/generators/lib/files/ts/plugin/admin/src/components/Initializer/index.tsx @@ -11,9 +11,8 @@ type InitializerProps = { setPlugin: (id: string) => void; }; -const Initializer: React.FC = ({ setPlugin }) => { - const ref = useRef<(id: string) => void | null>(null); - ref.current = setPlugin; +const Initializer = ({ setPlugin }: InitializerProps) => { + const ref = useRef(setPlugin); useEffect(() => { ref.current(pluginId);