Skip to content

Commit

Permalink
fix: value data
Browse files Browse the repository at this point in the history
  • Loading branch information
NichArchA82 committed Jan 8, 2025
1 parent 7edfb88 commit 4a3e057
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command-handler/src/util/libvirt/libvirt-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ export default {
const buttonsArray = [];

for (const serverType of data.instances) {
buttonsArray.push({ text: serverType.instance_type, actionId: `button_select_libvirt_image_${serverType.instance_type}`, value: JSON.stringify(data) });
data.serverType = serverType.instance_type;
buttonsArray.push({ text: serverType.instance_type, actionId: `button_select_libvirt_image_${serverType.instance_type}`, value: JSON.stringify(data) });
};
const buttons = buttonBuilder({ buttonsArray, headerText: 'Select a server', fallbackText: 'unsupported device' });
app.client.chat.postEphemeral({
Expand Down

0 comments on commit 4a3e057

Please sign in to comment.