worked on notes
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
async function loadCompanies(){
|
||||
const url = `${location.protocol}//${location.host.replace('5173','8080')}/api/company/list`;
|
||||
var resp = await fetch(url,{ credentials: 'include'});
|
||||
const resp = await fetch(url,{ credentials: 'include'});
|
||||
if (resp.ok){
|
||||
companies = await resp.json();
|
||||
} else {
|
||||
@@ -24,7 +24,7 @@
|
||||
}
|
||||
|
||||
if (company_id) {
|
||||
for (var comp of companies){
|
||||
for (let comp of companies){
|
||||
if (comp.id == company_id){
|
||||
load(comp);
|
||||
break;
|
||||
@@ -77,7 +77,7 @@
|
||||
</script>
|
||||
|
||||
<fieldset>
|
||||
<legend>{selected_company ? t( 'list_of',selected_company.name) : t('document.list')}</legend>
|
||||
<legend>{selected_company ? t( 'list_of',selected_company.name) : t('document_list')}</legend>
|
||||
{#if error}
|
||||
<div class="error">{error}</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user