@@ -606,7 +606,7 @@ $("#filterby")
606606
607607 // Destroy and recreate userDataTable
608608 if ( userDataTable ) {
609- userDataTable . destroy ( ) ;
609+ userDataTable . clear ( ) . destroy ( ) ;
610610 }
611611 if ( $ ( ".usertable" ) . length ) {
612612 userDataTable = $ ( ".usertable" ) . DataTable ( {
@@ -618,7 +618,7 @@ $("#filterby")
618618
619619 // Destroy and recreate codeDataTable
620620 if ( codeDataTable ) {
621- codeDataTable . destroy ( ) ;
621+ codeDataTable . clear ( ) . destroy ( ) ;
622622 }
623623 if ( $ ( ".codetable" ) . length ) {
624624 // Need to check if color column exists before recreating the table
@@ -670,7 +670,7 @@ $("#filterby")
670670
671671 // Destroy and recreate sourceDataTable
672672 if ( sourceDataTable ) {
673- sourceDataTable . destroy ( ) ;
673+ sourceDataTable . clear ( ) . destroy ( ) ;
674674 }
675675 if ( $ ( ".sourcetable" ) . length ) {
676676 sourceDataTable = $ ( ".sourcetable" ) . DataTable ( {
@@ -681,7 +681,7 @@ $("#filterby")
681681
682682 // Destroy and recreate annotationDataTable
683683 if ( annotationDataTable ) {
684- annotationDataTable . destroy ( ) ;
684+ annotationDataTable . clear ( ) . destroy ( ) ;
685685 }
686686 if ( $ ( ".annotationtable" ) . length ) {
687687 annotationDataTable = $ ( ".annotationtable" ) . DataTable ( {
@@ -692,7 +692,7 @@ $("#filterby")
692692
693693 // Destroy and recreate noteDataTable
694694 if ( noteDataTable ) {
695- noteDataTable . destroy ( ) ;
695+ noteDataTable . clear ( ) . destroy ( ) ;
696696 }
697697 if ( $ ( ".notetable" ) . length ) {
698698 noteDataTable = $ ( ".notetable" ) . DataTable ( {
@@ -703,7 +703,7 @@ $("#filterby")
703703
704704 // Destroy and recreate setDataTable
705705 if ( setDataTable ) {
706- setDataTable . destroy ( ) ;
706+ setDataTable . clear ( ) . destroy ( ) ;
707707 }
708708 if ( $ ( ".settable" ) . length ) {
709709 setDataTable = $ ( ".settable" ) . DataTable ( {
0 commit comments