removed "Select Master" option in master dropdown
This commit is contained in:
parent
5a7ca02952
commit
fba9a8fc06
@ -136,7 +136,7 @@ const MasterPage = () => {
|
||||
className="form-select form-select-sm"
|
||||
value={selectedMaster}
|
||||
>
|
||||
<option value="" disabled >Select Master</option>
|
||||
|
||||
{mastersList.map( ( item ) => (
|
||||
|
||||
<option key={item.id} value={item.name}>{item.name}</option>
|
||||
@ -193,7 +193,7 @@ const MasterPage = () => {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<MasterTable data={displayData} columns={columns} loading={loading} handleModalData={handleModalData} />
|
||||
<MasterTable data={displayData} columns={columns} loading={loading} handleModalData={handleModalData} />
|
||||
<div style={{ width: "1%" }}></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -44,12 +44,11 @@ const MasterTable = ( {data, columns, loading, handleModalData} ) =>
|
||||
>
|
||||
<thead>
|
||||
<tr>
|
||||
{/* Example of using updatedColumns */}
|
||||
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Description</th>
|
||||
<th className={` ${!hasMasterPermission && 'd-none'}`}>Actions</th>
|
||||
{/* ${hasUserPermission('660131a4-788c-4739-a082-cbbf7879cbf2') ? "":"d-none"} */}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
Loading…
x
Reference in New Issue
Block a user