Skip to content

Commit

Permalink
fix: fix empty useForm() (#6671)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin authored Jun 12, 2023
1 parent ab3f380 commit 06851c9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resources/js/Pages/API/Partials/ApiTokenManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const updateApiTokenForm = useForm({
permissions: [],
});
const deleteApiTokenForm = useForm();
const deleteApiTokenForm = useForm({});
const displayingToken = ref(false);
const managingPermissionsFor = ref(null);
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const form = useForm({
password: '',
remember: false,
});
const providerForm = useForm();
const providerForm = useForm({});
watch(
() => props.publicKey,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Auth/VerifyEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const props = defineProps({
status: String,
});
const form = useForm();
const form = useForm({});
const verificationLinkSent = computed(() => props.status === 'verification-link-sent');
Expand Down
4 changes: 2 additions & 2 deletions resources/js/Pages/Profile/Partials/UpdateProviders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import JetSecondaryButton from '@/Components/Jetstream/SecondaryButton.vue';
import JetActionSection from '@/Components/Jetstream/ActionSection.vue';
import JetInputError from '@/Components/InputError.vue';
const form = useForm();
const providerForm = useForm();
const form = useForm({});
const providerForm = useForm({});
const errors = computed(() => usePage().props.errors);
const deleteProvider = (provider) => {
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Webauthn/Partials/DeleteKeyModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import JetConfirmationModal from '@/Components/Jetstream/ConfirmationModal.vue';
import JetDangerButton from '@/Components/Jetstream/DangerButton.vue';
import JetSecondaryButton from '@/Components/Jetstream/SecondaryButton.vue';
const form = useForm();
const form = useForm({});
const props = defineProps({
keyid: Number,
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Webauthn/WebauthnLogin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isSupported = ref(true);
const errorMessage = ref('');
const processing = ref(false);
const authForm = useForm();
const authForm = useForm({});
watch(
() => props.publicKey,
Expand Down

0 comments on commit 06851c9

Please sign in to comment.