andi 2 years ago
parent
commit
fc8f6039c3
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/app/pemantauan/timeline.js

+ 3 - 2
pages/app/pemantauan/timeline.js

@@ -32,15 +32,16 @@ class Pemantauan extends Component {
 	componentDidMount = async () => {
 		const { query, token } = this.props;
 		const ptId = query.ptId;
-		const pelaporan = await getPelaporan(token, { pt_id: ptId, all: true, aktif: false });
+		const pelaporan = await getPelaporan(token, { pt_id: ptId, all: true, aktif: true });
 		const pt = await getOnePT(token, ptId);
 		this.setState({ pelaporan, pt });
+
 	};
 
 	handleLihatPemantaun = async (e, id_laporan) => {
 		const { token } = this.props;
 		const log = await getLog(token, id_laporan);
-		const detailLaporanPt = await getOneLaporan(token, id_laporan, { all: true, aktif: false });
+		const detailLaporanPt = await getOneLaporan(token, id_laporan, { all: true, aktif: true });
 		this.setState({ detailLaporanPt, log });
 	};