diff --git a/lang/id.json b/lang/id.json index 89aef57..33ef3ac 100644 --- a/lang/id.json +++ b/lang/id.json @@ -124,5 +124,6 @@ "referenceerror: currencycountryrate is not defined": "ReferenceError: currencyCountryRate is not defined", "referenceerror: ccountry is not defined": "ReferenceError: ccountry is not defined", "typeerror: invalid assignment to const 'response'": "TypeError: invalid assignment to const 'response'", - "error: request aborted": "Error: Request aborted" + "error: request aborted": "Error: Request aborted", + "typeerror: can't access property \"code\", form.country is null": "TypeError: can't access property \"code\", form.country is null" } \ No newline at end of file diff --git a/resources/js/.DS_Store b/resources/js/.DS_Store new file mode 100644 index 0000000..c328838 Binary files /dev/null and b/resources/js/.DS_Store differ diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index 439cd9b..b139aee 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -346,9 +346,12 @@ function selectCountry(item, id) { let cCntry = [["Country"]]; console.log(form.countries); let aCntry = form.countries.map((country) => [country]); + if (form.countries.length == 0) aCntry = ccountry.value.map((country) => [country.country_name]); ccountry_filter.value = cCntry; ccountry_filter.value.push(...aCntry); + + } onMounted(fetch); @@ -537,7 +540,7 @@ watch(ccodes, (codes) => {