ソースを参照

fix table sanksi penyebab bug Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node

andi 2 年 前
コミット
764764c853
1 ファイル変更15 行追加0 行削除
  1. 15 0
      components/Sanksi/TablePenetapanSanksi.js

+ 15 - 0
components/Sanksi/TablePenetapanSanksi.js

@@ -60,6 +60,7 @@ export class TablePenetapanSanksi extends Component {
 
 	render() {
 		const { pelanggaran, labelSanksi, checkedData } = this.state;
+		console.log(labelSanksi.map((e) => e.value))
 
 		return (
 			<div className="card b ">
@@ -130,6 +131,17 @@ export class TablePenetapanSanksi extends Component {
 					</Datatable>
 
 					}
+					{/* {this.props.user?.role.id === 2020 ? (
+						labelSanksi.length && labelSanksi.filter((e) => e.labelSanksi === "Ringan" || e.labelSanksi === "Sedang").length === labelSanksi.length ? (
+							<Button className="btn-login float-right" color onClick={this.ondelegasi} >
+								<span className="font-color-white">
+									Delegasi ke LLDIKTI
+								</span>
+							</Button>
+						) : ("")
+					) : ("")
+					} */}
+					<div className="float-right m-2 ">
 						{this.props.user?.role.id === 2020 ? (
 							labelSanksi.length && labelSanksi.filter((e) => e.labelSanksi === "Ringan" || e.labelSanksi === "Sedang").length === labelSanksi.length ? (
 								<Button className="btn-login float-right" color onClick={this.ondelegasi} >
@@ -141,6 +153,9 @@ export class TablePenetapanSanksi extends Component {
 						) : ("")
 						}
 
+					</div>
+		
+
 				</div>
 			</div>
 		);