@happychef/reservation-sidebar 2.0.6 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5215,9 +5215,7 @@ var ReservationSidebar = ({
|
|
|
5215
5215
|
try {
|
|
5216
5216
|
const baseDomain = window.baseDomain || "";
|
|
5217
5217
|
const [data, personeelData] = await Promise.all([
|
|
5218
|
-
api.get(`${baseDomain}api/auth-restaurant/`, {
|
|
5219
|
-
noCache
|
|
5220
|
-
}),
|
|
5218
|
+
api.get(`${baseDomain}api/auth-restaurant/`, { noCache: true }),
|
|
5221
5219
|
api.get(`${baseDomain}api/personeel`, { noCache: true })
|
|
5222
5220
|
]);
|
|
5223
5221
|
setTimeblocks(data.timeblocks || []);
|
|
@@ -5300,7 +5298,7 @@ var ReservationSidebar = ({
|
|
|
5300
5298
|
type: "select",
|
|
5301
5299
|
options: availablePersoneel.map((p) => {
|
|
5302
5300
|
const full = `${p.voornaam} ${p.achternaam}`;
|
|
5303
|
-
return { value, label: full };
|
|
5301
|
+
return { value: p.id, label: full };
|
|
5304
5302
|
}),
|
|
5305
5303
|
value: formData.personeel,
|
|
5306
5304
|
onChange: handleChange,
|
package/dist/index.mjs
CHANGED
|
@@ -5206,9 +5206,7 @@ var ReservationSidebar = ({
|
|
|
5206
5206
|
try {
|
|
5207
5207
|
const baseDomain = window.baseDomain || "";
|
|
5208
5208
|
const [data, personeelData] = await Promise.all([
|
|
5209
|
-
api.get(`${baseDomain}api/auth-restaurant/`, {
|
|
5210
|
-
noCache
|
|
5211
|
-
}),
|
|
5209
|
+
api.get(`${baseDomain}api/auth-restaurant/`, { noCache: true }),
|
|
5212
5210
|
api.get(`${baseDomain}api/personeel`, { noCache: true })
|
|
5213
5211
|
]);
|
|
5214
5212
|
setTimeblocks(data.timeblocks || []);
|
|
@@ -5291,7 +5289,7 @@ var ReservationSidebar = ({
|
|
|
5291
5289
|
type: "select",
|
|
5292
5290
|
options: availablePersoneel.map((p) => {
|
|
5293
5291
|
const full = `${p.voornaam} ${p.achternaam}`;
|
|
5294
|
-
return { value, label: full };
|
|
5292
|
+
return { value: p.id, label: full };
|
|
5295
5293
|
}),
|
|
5296
5294
|
value: formData.personeel,
|
|
5297
5295
|
onChange: handleChange,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happychef/reservation-sidebar",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.8",
|
|
4
4
|
"description": "A compound component for managing restaurant reservations - JavaScript version with independent styles",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|