Fakultas Ilmu Komputer UI

Commit df28babe authored by Dzaky Noor Hasyim's avatar Dzaky Noor Hasyim
Browse files

[REFACTOR] Fix search not null issue on search_kegiatan

parent 31602215
Pipeline #82016 passed with stages
in 14 minutes and 52 seconds
......@@ -33,7 +33,7 @@ class KegiatanRepository implements BaseKegiatanRepository {
@override
Future<dynamic> fetchKegiatanSearch(String search, String sortConfig) async {
var url = '/informasi-fasilitas/lokasi/list-kegiatan-by-$sortConfig';
if(search != null){
if(search != null && search!=''){
url += '/$search';
}
final response = await _network.get(url: url, isLogin: false);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment