소스 검색

fix supplier

FabioFratini 7 달 전
부모
커밋
edb11ec7e6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      resources/views/livewire/supplier.blade.php

+ 3 - 0
resources/views/livewire/supplier.blade.php

@@ -368,6 +368,8 @@
 
         function loadDataTable(){
             if ( $.fn.DataTable.isDataTable('#tablesaw-350') ) {
+                $('#tablesaw-350').DataTable().destroy();
+            }
                 $('#tablesaw-350').DataTable({
                 thead: {
                 'th': {'background-color': 'blue'}
@@ -439,3 +441,4 @@
         }
 
     </script>
+@endpush