mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 10:19:51 -06:00
bugfix not showing loading indicator when loading form frontend
This commit is contained in:
@@ -12,16 +12,16 @@ export default function NoCodeFormPublic() {
|
||||
const { noCodeForm, isLoadingNoCodeForm, isErrorNoCodeForm } =
|
||||
useNoCodeFormPublic(formId);
|
||||
|
||||
if (isLoadingNoCodeForm) {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
if (isErrorNoCodeForm || !noCodeForm?.published) {
|
||||
return (
|
||||
<MessagePage text="Form not found. Are you sure this is the right URL?" />
|
||||
);
|
||||
}
|
||||
|
||||
if (isLoadingNoCodeForm) {
|
||||
return <Loading />;
|
||||
}
|
||||
|
||||
return (
|
||||
<BaseLayoutUnauthorized title="snoopForms">
|
||||
{noCodeForm.closed ? (
|
||||
|
||||
Reference in New Issue
Block a user