fix: migrate loader redirect (#7426)

This commit is contained in:
Curry Yang 2024-07-12 20:00:13 +08:00 committed by GitHub
parent c9ba5ec237
commit a50757f6bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,7 +9,7 @@ import { InsomniaLogo } from '../components/insomnia-icon';
import { TrailLinesContainer } from '../components/trail-lines-container';
export const loader: LoaderFunction = async () => {
if (!shouldMigrateProjectUnderOrganization()) {
if (!await shouldMigrateProjectUnderOrganization()) {
return redirect('/organization');
}