Skip to content

Commit 1f54e5a

Browse files
committed
fix: modify read
1 parent 17fa57d commit 1f54e5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tencentcloud/data_source_tc_bi_project.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,15 @@ func dataSourceTencentCloudBiProjectRead(d *schema.ResourceData, meta interface{
233233
ctx := context.WithValue(context.TODO(), logIdKey, logId)
234234

235235
paramMap := make(map[string]interface{})
236-
if v, _ := d.GetOk("page_no"); v != nil {
236+
if v, ok := d.GetOkExists("page_no"); ok {
237237
paramMap["PageNo"] = helper.IntUint64(v.(int))
238238
}
239239

240240
if v, ok := d.GetOk("keyword"); ok {
241241
paramMap["Keyword"] = helper.String(v.(string))
242242
}
243243

244-
if v, _ := d.GetOk("all_page"); v != nil {
244+
if v, ok := d.GetOkExists("all_page"); ok {
245245
paramMap["AllPage"] = helper.Bool(v.(bool))
246246
}
247247

0 commit comments

Comments
 (0)