fix providers not visible for secretaries

This commit is contained in:
Jan Chaloupecky 2022-04-22 15:15:42 +02:00
parent 227612565d
commit b87f7aa1b3

View file

@ -360,7 +360,7 @@ App.Components.AppointmentsModal = (function () {
if ( if (
vars('role_slug') === App.Layouts.Backend.DB_SLUG_SECRETARY && vars('role_slug') === App.Layouts.Backend.DB_SLUG_SECRETARY &&
vars('secretary_providers').indexOf(provider.id) === -1 vars('secretary_providers').indexOf(Number(provider.id)) === -1
) { ) {
return; // continue return; // continue
} }