Browse Source

fix supplier

FabioFratini 7 tháng trước cách đây
mục cha
commit
edb11ec7e6
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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