Update app/javascript/dashboard/composables/loadWithRetry.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Muhsin Keloth
2026-02-27 15:17:54 +04:00
committed by GitHub
co-authored by Copilot
parent 11e55d2d2c
commit 80b0326e16
@@ -1,9 +1,9 @@
import { ref } from 'vue';
export const useLoadWithRetry = (config = {}) => {
const maxRetry = config.max_retry || 3;
const backoff = config.backoff || 1000;
const mediaType = config.mediaType || 'image';
const maxRetry = (config.max_retry ?? config.maxRetry) || 3;
const backoff = (config.backoff ?? config.backOff) || 1000;
const mediaType = (config.mediaType ?? config.media_type) || 'image';
const isLoaded = ref(false);
const hasError = ref(false);