From 289deecd654554c76c979505eeb5180ddeb093c6 Mon Sep 17 00:00:00 2001 From: wahyun Date: Sun, 21 Jul 2024 20:18:50 +0700 Subject: [PATCH] fix: company_id --- src/views/Master/MasterCompany/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/Master/MasterCompany/index.js b/src/views/Master/MasterCompany/index.js index 3c99106..fc91055 100644 --- a/src/views/Master/MasterCompany/index.js +++ b/src/views/Master/MasterCompany/index.js @@ -443,7 +443,7 @@ const MasterCompany = ({ params }) => { // Delete Image Function const deleteImageHeader = async (id) => { - const URL = IMAGE_DELETE(id, 'company_logo_header', companyID != '' ? companyID : 'undifined'); + const URL = IMAGE_DELETE(id, 'company_logo_header'); await axios .delete(URL, HEADER) .then(res => res) @@ -452,7 +452,7 @@ const MasterCompany = ({ params }) => { }; const deleteImageLogin = async (id) => { - const URL = IMAGE_DELETE(id, 'company_logo_login', companyID != '' ? companyID : 'undifined'); + const URL = IMAGE_DELETE(id, 'company_logo_login'); await axios .delete(URL, HEADER) .then(res => res) @@ -461,7 +461,7 @@ const MasterCompany = ({ params }) => { }; const deleteImageFavicon = async (id) => { - const URL = IMAGE_DELETE(id, 'company_favicon', companyID != '' ? companyID : 'undifined'); + const URL = IMAGE_DELETE(id, 'company_favicon'); await axios .delete(URL, HEADER) .then(res => res) @@ -470,7 +470,7 @@ const MasterCompany = ({ params }) => { }; const deleteImageSlider = async (id) => { - const URL = IMAGE_MULTIPLE_DELETE(id, 'company_slider_login', companyID != '' ? companyID : 'undifined'); + const URL = IMAGE_MULTIPLE_DELETE(id, 'company_slider_login'); await axios .delete(URL, HEADER) .then(res => res)